cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
FoDelement
Level 8

HTML to PDF Font Issue

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? 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

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,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Dual Super User
Dual Super User

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!

Community Support Team
Community Support Team

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,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

FoDelement
Level 8

Re: HTML to PDF Font Issue

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

Helpful resources

Announcements
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,511)