Skip to main content
Community site session details

Community site session details

Session Id : +HoyaF+XR5ZLiS3Hw5SNPr
Power Apps - Building Power Apps
Unanswered

HTML Text as PDF

Like (0) ShareShare
ReportReport
Posted on 23 Aug 2021 12:45:31 by 3

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='https://www.barcodesinc.com/generator/image.php?code=" & 'txtStockCode.Text'& "&style=196&type=C128C'>"

 

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

 

concat("<!DOCTYPE html>
<html>
<body>
<img src='https://www.barcodesinc.com/generator/image.php?code=','', '&style=195&type=C128C'>

</body>
</html>
")

 

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

  • Pstork1 Profile Picture
    67,079 Most Valuable Professional on 23 Aug 2021 at 13:58:09
    Re: HTML Text as PDF

    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

  • Ashwin7104 Profile Picture
    671 on 23 Aug 2021 at 13:24:42
    Re: HTML Text as PDF

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

    https://powerusers.microsoft.com/t5/Building-Flows/Pass-variable-from-powerapps-to-flow/td-p/66534 

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

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!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete