Showing results for 
Search instead for 
Did you mean: 
Advocate II
Advocate II

Image is not showing in the PDF


I am trying to convert an image to PDF format using Power Automate. I tried to link my image using an HTML tag in a Compose action. 

My flow ran successfully, and it was stored in the PDF format in the specified SharePoint folder. But unfortunately, when I am trying to open the converted PDF file, the image is not displaying. Make sure not to use any premium connectors.

Here I am attaching my flow with the PDF that was created from the HTML.

Convert Image to PDF using Power Automate.pngPower Automate convert image to PDF.pngHow to convert image to Pdf using flow.png


If someone can help me figure out what's wrong, I would really appreciate it.

Thanks in Advance.

Super User
Super User

Hi @sonam1996sahoo 

this doesn't work with only the link to the item, you need to get the image content and convert it using "dataUri" from binary to dataUri format.

Add a sharepoint action "Get file content using path" and select your file. In your compose, replace your code within scr="" with:


so it should look like:

<img src="@{dataUri(outputs('Get_file_content_using_path')?['body'])}" alt="Trulli" width="500" height="333" />


Run your flow again, this should create a PDF with an image.


Does this help you? Otherwise please give me some more information.

Best regards

If you like this post, give a Thumbs up. If it solved your request, Mark it as a Solution to enable other users to find it.

Blog: Cloudkumpel

Helpful resources

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (2,051)