cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver III
Resolver III

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
Highlighted
Community Support
Community Support

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
Highlighted
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!

Highlighted
Community Support
Community Support

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

Highlighted
Resolver III
Resolver III

Re: HTML to PDF Font Issue

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

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

Top Solution Authors
Users online (7,777)