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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Creating PDF from HTML
Power Automate
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard