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 Automate
Unanswered

Fitting HTML into PDF

(0) ShareShare
ReportReport
Posted on by 18

I have an html table that want to fit into PDF when creating a PDF file in the flow.

I also want to get the same HTML formatting into the created PDF.

Categories:
I have the same question (0)
  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @Rasti  ,

     

    Will able to help you better if you can share the HTML table that you are trying to convert into PDF.

     

  • Rasti Profile Picture
    18 on at

    Rasti_0-1709022415949.png

     

    Rasti_1-1709022463692.png

     

     

     

  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @Rasti  ,

     

    Looks like you want to give an alternate color to your table rows. This can be achieved by using a mod operator and using inline styling the tds. 

     

    if you follow the below links you should be able to solve your issue,

     

    1. https://ryanmaclean365.com/2020/01/29/power-automate-html-table-styling/

    2. https://www.youtube.com/watch?v=Kjtu1ALqvyw

     

    If this helps , please give this a thumbs up and mark this as a solution.

     

    Thanks,

    Sanmesh

  • Rasti Profile Picture
    18 on at

    Hi  SanmeshG;

    Thanks for your input. I know how to format html, but want to know how to keep html formatting in the created PDF file?

     

  • SanmeshG Profile Picture
    1,947 Moderator on at

    Sorry didn't get what exactly is the issue ? Can you elaborate and give more details what's the issue that you are facing?

  • Rasti Profile Picture
    18 on at

    My html look like this;

    Rasti_4-1709028110741.png

     

    but getting PDF like this;

    Rasti_5-1709028152053.png

     

     

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard