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 - Font Issue

(0) ShareShare
ReportReport
Posted on by 5

HI,

 

I am trying to create a pdf using one drive create a file. The html I generate is in the intended format for me but when I try to convert and generate the pdf from above created html - it loses its font( font color and size remain but font family does not stay). 

Anyone experience anything similar or suggestions to ensure the font-family remains in the generated pdf?

 

Thanks

 

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi @ShauryaSingh :

    I've encountered the same problem.To solve this problem please set the font-family and font-size in CSS Way instead of use the font tag.Some thing like:

    <html>
    <body>
    <head>
    <style type="text/css">
    p.p1{font-family:Georgia;font-size:60px}
    p.p2{font-family:Arial;font-size:15px; background-color: white;
     color: red}
    </style>
    </head>
    <p class="P1">A paragraph.</p>
    <p class="P2">A paragraph.</p>
    </body>
    </html>

    My flow:

    vbofengmsft_0-1634276460953.png

     

    The Result:

    vbofengmsft_1-1634276474097.png

    Best Regards,

    Bof

     

  • ShauryaSingh Profile Picture
    5 on at

    Thanks for responding. Sadly that also does not work for me. It only retains a couple fonts and arial happens to be one of them. If you try with other fonts like cursive, it loses it. It does maintain the font color and size. Any other tip/advice is welcome! I am still stuck at this.

  • v-bofeng-msft Profile Picture
    on at

    Hi @ShauryaSingh :

    I think this link will helps:

    Using external fonts

    Best Regards,

    Bof

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard