Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

HTML Text as PDF

I have generated a barcode using HTML Text. But not able to convert that into a PDF  - 


This is what I am doing in Power App in HTML Text Input: (Barcode is being generated successfully) 


"<img src='" & 'txtStockCode.Text'& "&style=196&type=C128C'>"


Code in Power Automate (MS Flow) : (Not working)


concat("<!DOCTYPE html>
<img src='','', '&style=195&type=C128C'>



Also, how can i get what is stored in txtStockCode.Text text box from PowerApps ?

Responsive Resident
Responsive Resident

@PowerDigitize - The below link explains how values can be passed to Power Automate from Apps. 

Dual Super User III
Dual Super User III

To display an image in a PDF when converting HTML in Power Automate you can't just reference the URL of the image.  You have to retrieve the image and get its base64 representation.  That base64 string then needs to be input where the src='' code is in your HTML.  Take a look at the instructions in this blog.

Generate Any PDF Documents from HTML with Flow — John Liu .NET

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.


Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,538)