Skip to main content
Community site session details

Community site session details

Session Id : Rx7Bc98Y7robbxQzQnVxE0
Power Automate - General Discussion
Answered

HTML to PDF Font Issue

Like (0) ShareShare
ReportReport
Posted on 14 Aug 2019 16:28:52 by 435

Hello all,

 

I have a flow that creates a Name Badge in HTML format. That file is then converted to a PDF using the One Drive Convert to PDF action. The issue is, the font used in the HTML format is changed to something else, once it is converted to PDF. 

 

I can open the HTML file in one drive and see the desired font. Once I open the PDF version, the font is set to something else.

 

Is there a way to prevent the font from changing? 

  • MarkFeodoroff Profile Picture
    3 on 29 May 2024 at 23:41:59
    Re: HTML to PDF Font Issue

    The documented solution seems to work for standard fonts, however, my company uses Montserrat.  My PDFs get changed to Times New Roman, so it looks like I'll have to settle for a font other than the company standard one.

  • ShauryaSingh Profile Picture
    5 on 15 Oct 2021 at 17:02:35
    Re: HTML to PDF Font Issue

    Hi,


    I know its been 2 years but do you remember what you ended up doing to bypass the font issue?

  • FoDelement Profile Picture
    435 on 19 Aug 2019 at 20:29:44
    Re: HTML to PDF Font Issue

    Not sure what the cause was, but we went a different route. Thanks! 

  • Verified answer
    v-bacao-msft Profile Picture
    on 19 Aug 2019 at 06:07:08
    Re: HTML to PDF Font Issue

     

    Hi @FoDelement ,

     

    Could you please provide HTML code for us to test?

    I also tested on my side, using the HTML code below, the styles in the PDF file have not been changed.

    <html>
    <body>
    <h1 style="font-family:verdana">A heading</h1>
    <p style="font-family:arial;color:red;font-size:20px;">A paragraph.</p>
    </body>
    </html>

    Image reference:

    164.PNG

     

    Best Regards,

  • yashag2255 Profile Picture
    24,669 Super User 2024 Season 1 on 15 Aug 2019 at 03:07:37
    Re: HTML to PDF Font Issue

    Hey @FoDelement 

     

    Can you share a screenshot of the flow? This is odd. I have a flow where I get formatted HTML (there are a couple fonts too) and it works just fine. 

     

    Is there any other action that you are invoking in between? If you could share the flow and the format text, we might be able to better assist you. 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2