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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

[Power Automate] Issues with HTML to PDF conversion: Broken Internal Hyperlinks

(0) ShareShare
ReportReport
Posted on by 8
Hi everyone,
I am facing two specific issues when using the OneDrive for Business "Convert file" action in Power Automate (Online) to transform HTML content into PDF.
1. Loss of Heading Hierarchy (Table of Contents)
My source HTML uses standard <h1> tags. However, after the conversion to PDF, these elements lose their "Heading" property. When viewing the generated PDF in the SharePoint/OneDrive PDF viewer, the document structure (Table of Contents/Navigation pane) is empty. It seems the converter flattens the style instead of preserving the semantic HTML tags as PDF bookmarks.
2. Internal Links (Anchors) Not Working
I am using internal redirects within the HTML to navigate between sections. Even though I have tried using both name and id attributes, the links do not work in the final PDF.
  • Link: <a href="#heading1">Go to Section</a>
  • Target: <h1 id="heading1">Section Title</h1> (also tried <h1 name="heading1">)
After conversion, the link is either non-clickable or does not point to the correct anchor within the document.
Questions:
  • Is there a specific CSS or meta tag required for the OneDrive converter to recognize PDF bookmarks?
  • Is there a known workaround for internal anchors (bookmarks) using this specific connector?
  • If this is a limitation of the native "Convert file" action, do you recommend any specific alternative (without using paid 3rd party connectors)?
Any help or insights would be greatly appreciated!
I have the same question (0)

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 Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 150

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 65 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 53 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans