Skip to main content

Notifications

Power Automate - General Discussion
Under review by Community Managers

Under review

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

Convert from HTML to PDF not working / styling does not convert properly.

Posted on by
Hey all!
 
Currently I have a Power App that sends HTML code to Power Automate. Then, Power Automate creates an HTML file using the code. Finally, Power Automate converts this HTML file into a PDF for me to send through email.
 
I initially took this process on using Shane Young's approach. (Link here: https://youtu.be/bfXV_GXc_JM?si=cs_RQwcIEcYOnfYC)
 
My problem now, all of a sudden, despite me not changing any code or functions pertaining to it at all, the styling does not work!
 
While the HTML file has the correct styling (attached below), for some reason, when I convert it to PDF it does not retain the styling (attached below).
 
Could someone provide some insight as to how I should fix this?
 
 
Below is the HTML file, PDF file, and the code I sent.
 
 
Categories:

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,304

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard