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

Community site session details

Session Id : 9i0DVynZekWD0vNATtPiKb
Power Automate - Using Flows
Unanswered

Image not showing when converted to pdf

Like (0) ShareShare
ReportReport
Posted on 15 Sep 2021 13:56:53 by

Hello,
I'm struggling with a weird problem.
I'm making a flow that treat a number of Images wich varies between 0 and 3, from items of a Sharepoint list. No problem to get the content (images) of my sharepoint , nor to convert them to dataUri(base64). The creation of the HTML is good (i'm a front-end developper), and images show when I test the HTML on code pen. But for whatever reason, chen I convert it to pdf using the oneDrive tool, html text is ther but not the images (little grey square with a red cross). Any Idea on why?

  • rrovira Profile Picture
    Microsoft Employee on 17 Sep 2021 at 17:09:13
    Re: Image not showing when converted to pdf

    Hello again, @Anonymous! 

     

    Reading through some posts, I read that some users where having this similar issue because of the dataUri expression fixing it by simply removing an unnecesary pair of ' , however I would recommend you to check this video if you haven't PowerApps PDF Generator using Microsoft Flow PDF Converter - YouTube as it shows step by step how to do this. 

     

    Another common issue I read was more of an old well known error. If this was the case, I would recommend you to open a support ticket. Get Help + Support - Power Platform | Microsoft Docs

     

    Cheers,

    Rodrigo!

  • Community Power Platform Member Profile Picture
    on 17 Sep 2021 at 06:55:54
    Re: Image not showing when converted to pdf

    GBarnieu_3-1631861480943.pngGBarnieu_2-1631861455493.png

    Here they are. 
    I get the last element from my sharepoint list (1 element, and ID order by desc), I get the attachements from it, wich I convert to DataUri (I put it in a apply to each because the number of attachelents can vary from 0 to 3).
    Then I concatenate it with an html <img> tag.
    A "html" variable is created before, with the body, html etc..
    Aand I concatenate all my <img>+dataUri to the main html variable. 
    Then it's converted to pdf, and sent.
    As I said, the process works because when I test the HTML as a "real" website, the images show.
    Hope you can help me!

  • rrovira Profile Picture
    Microsoft Employee on 15 Sep 2021 at 20:10:30
    Re: Image not showing when converted to pdf

    Hello, @Anonymous!

     

    Could you please share a screenshot to see how the flow is configured? 

     

    Thank you and cheers!

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Featured topics

Restore a deleted flow