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 / Creating PDF from HTML
Power Automate
Answered

Creating PDF from HTML

(0) ShareShare
ReportReport
Posted on by 14

Hello,

 

I am trying to create a workaround for converting a PNG to a PDF. My steps are as follows (with Power Automate step names in parenthesis) :

  1. Getting the PNG thumbnail (Get file Thumbnail)
  2. Compose HTML code (Compose)
  3. Create HTML File from thumbnail URL (Create File)
  4. Convert HTML to PDF (Convert File)
  5. Create PDF File from converted HTML (Create File)

The issue that I am running into is that my PDF shows up like this:

nj128534_0-1687547670818.png

I am confused about what is happening, since my HTML file is created correctly and contains all of the information that I need. 

 

Note that all steps are based on OneDrive for Business except for the Compose HTML Step.

 

Thank you in advance!

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

    Hi @nj128534,

    Do you want to convert the file thumbnail from PNG to PDF?

     

    I did some test according to your requirements.
    Convert HTML to PDF only supports pictures in Base64 format.
    You can convert the png to Base64 using base64() fuction.


    Following is my flow.

    vmingkzmsft_0-1687763056081.png

     

    vmingkzmsft_1-1687763372376.png

     

    vmingkzmsft_2-1687763392643.png

     

    Best Regards,

    Kyrie

     

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 594

#2
Valantis Profile Picture

Valantis 469

#3
11manish Profile Picture

11manish 364

Last 30 days Overall leaderboard