Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

How to embed image in html to generate pdf in power automate

(0) ShareShare
ReportReport
Posted on by 127

I am generating pdf using html on power automate,  all are fine but i have an issue with images.

1) how can i add a logo on the html so that it will appear in the pdf file

2) any guides or samples to include  or call column from sharepoint list which is an image data type.

 

  • Sebey Profile Picture
    127 on at
    Re: How to embed image in html to generate pdf in power automate

    I have a initialized variable that  shows  data from sharepoint lists. i want to show the logo at the top of the page so  i put the code on the top of the html code but still getting error.

    getfile2.pnggetfile.png

  • RobElliott Profile Picture
    10,118 Super User 2025 Season 1 on at
    Re: How to embed image in html to generate pdf in power automate

    @Sebey add a SharePoint get file content using path action and select the site and file path to the logo. Then in your create file action click on code view and for the logo line add 
    <img src="{expression}"></img> where the expression is dataUri(body('Get_file_content_using_path'))

     

    addLogo.png

     

    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

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,635 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow