web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / image in pdf using htm...
Power Apps
Unanswered

image in pdf using html text

(0) ShareShare
ReportReport
Posted on by 8

I am trying to create a pdf from html text using flow

I am able to create pdf from html text using flow.. but i need to add image in pdf . i tried to add image src but image is not displaying in pdf. How can i show the image in pdf?

I am attaching my code

 

"<!doctype html>
<html>
<head>
<meta charset=UTF-8>
<meta name=viewport content=width=device-width, initial-scale=1.0>
</head>
<body style=padding: 0; margin: 0;>
     
<table align=center style=font-family: Arial, Helvetica, sans-serif; font-size:13px; width: 100%; max-width:800px;>
    <tr>
        <td style=font-size:26px; font-weight: 600; color: brown; padding:30px 0 20px 0;>New communication Template</td>
    </tr>
    <tr align=center>
        <td style=padding: 0;><img src=https://@@@@@@@sharepoint.com/######/Shared Documents/test/test_106 alt=header width=400 height=400></td>
    </tr>
</table>
</body>
</html>"
 
my flow
img.PNG
 
my pdf
 
img2.PNG
 
 
why my image is not displaying?
Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey @monikaprakash_1 

    The easiest way to resolve this issue is to embed the image as a dataUri in your HTML.

    There are a number of websites where you can upload your image and it will return the dataUri of the image.

    Once you have your dataUri simply update the img tag in your HTML:

    From your img src to dataUri string.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 556

#2
WarrenBelz Profile Picture

WarrenBelz 412 Most Valuable Professional

#3
Haque Profile Picture

Haque 296

Last 30 days Overall leaderboard