Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Image not showing when converted to pdf

(0) ShareShare
ReportReport
Posted on 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 at
    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 at
    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 at
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow