web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create PDF with hyperl...
Power Automate
Unanswered

Create PDF with hyperlinked Table of Contents

(0) ShareShare
ReportReport
Posted on by 79

I can create a PDF from an HTML file but would like to include a clickable table of contents to the pdf.  I have set up a clickable TOC in the HTML file, but it doesn't work in the pdf.  Here is the HTML file.

 

<style>
ol {
 counter-reset: item
}
li {
 display: block
}
li:before {
 content: counters(item, ".")" ";
 counter-increment: item
}
</style>

<body>

<ol>
 <li> <a href="#Purpose">Purpose</a>

 </li>
 <li> <a href="#Summary">Term Definitions</a>

 </li>
 <ol>
 <li> <a href="#Lnk"></a>

 </li>
 <li> <a href="#Lnk"></a>

 </li>
 </ol>
</ol>

<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>

<h2 id="Purpose" style="color: #5e9ca0; text-align: center;"><span style="color: #2b2301;">Purpose</span></h2>
<p>This is the whole idea that you should understand.</p>
</body>

 

 

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @rarroyo1 ,

     

    I did the test on my side, and it is exactly the same as what you described. If this Hyperlink points to other pages in Html, this method doesn't seem to work.

    Another test found that if hyperlink points to a specific link, it is workable.

    Convert file action here doesn't seem to work for other elements in the same HTML.

     

    Best Regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 607

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard