cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Re: HTML Text to Flow - Convert html file to PDF

Hello,

I found images a bit trickier - just inserting the <img src tag with the path doesn't work for the PDF.

You have to get the file content of the image first, create a variable with that and use that in the <img src tag.

I have attached how the flow looks, I'm putting the HTML and Img tag together in the concat. My image is stored in a SharePoint list.

Hope that helps!

Kind Regards
Manuela
memsim1010
Level: Powered On

Re: HTML Text to Flow - Convert html file to PDF

@ManuelaPichler

 

Thank you so much!  I am so so close.  Can you take a peek at my HTML?  It is telling me the expression is invalid.  I have two variables (images).  One is called 'Logo' and the other  is 'Signature'.  I'm sure I just have my quotes wrong somewhere.

 

@concat('<DOCTYPE html>
<html>
<body>
Img src="',variables('Logo'),'", triggerBody()['Createfile_FileContent'],<br>'img src="'variables('Signature'),'"></body</html>')

Re: HTML Text to Flow - Convert html file to PDF

Hello,

 

that's great, glad we're getting closer Smiley Happy 

 

I think there were two few < and > missing, can you try the below?

 

@concat('<DOCTYPE html>
<html>
<body>
<img src="',variables('Logo'),,'">', triggerBody()['Createfile_FileContent'],<br>'<img src="', variables('Signature'),'"></body</html>')

Kind Regards,

Manuela 

Highlighted
memsim1010
Level: Powered On

Re: HTML Text to Flow - Convert html file to PDF

@ManuelaPichler Thank you!! I'm all set now Smiley Happy  

The app works (and the PDF looks) like a dream!


JoshS
Level: Powered On

Re: HTML Text to Flow - Convert html file to PDF

Hi guys,

 

Do you know why some of my html might not be converting properly? I have a template that is modified through powerapps and generates a filled out form in html (which looks perfect) but when it gets converted to PDF there is a column cut out.. 

Is there also any way to make it convert taking into account the css within the html template?

Ted-White
Level: Power Up

Re: HTML Text to Flow - Convert html file to PDF

Hi there, in respect to the question asked regarding the conversion of html file to PDF you can try out total html converter presented by www.coolutils.com since most of their services are regarding conversion so you can find alot of helpful material from their website i'll share the link below so you can check out. All the best.

https://www.coolutils.com/TotalHTMLConverter

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 18 members 4,261 guests
Please welcome our newest community members: