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 Automate
Unanswered

Attachments in html

(0) ShareShare
ReportReport
Posted on by 108

Hi,

 

I have multiple attachments which contains only Images/Pictures in  my SharePoint list attachment column. I want to create an Html file containing those images embedded and convert it into PDF format to generate a report.

 

Example: 

images will come from SharePoint list attachment column

 

//logo

//some paragraph

//some bullet points

 

Photo1

//image1

 

Photo2

//Image2

 

Photo3

//Image3

 

Note: I want to use Encodian (already bought a subscription) as I have more than 20 photos in share point list attachment column.

 

It would be great if someone help me on this as i am struggling to get the right output.

 

Thanks

Categories:
I have the same question (0)
  • Jackson_Dhorty Profile Picture
    108 on at

    Hey @Pstork1 , @eric-cheng! any help on this thread would be appreciated.

     

    Thanks

  • Pstork1 Profile Picture
    69,389 Most Valuable Professional on at

    Did you watch Shane Young's video on creating a PDF in Power Automate? PowerApps PDF Generator using Microsoft Flow PDF Converter - YouTube  He covers how to embed an image in the HTML prior to conversion.  The process is essentially the same whether using the Encodian connector or the built in connector.  You need to retrieve the file content of each Image and convert it to an embedded value using DataUri().  Then add it to the HTML in the appropriate place.

  • jkb6011 Profile Picture
    122 on at

    I'm having the same issue. Except writing my attachments to a Word Doc, not HTML, before converting to PDF. Need to understand how to write multiple png or jpg files to a single document. Shane's video doesn't cover this. Haven't found one from Reza that provides this specific functionality either. @Pstork1 

  • Pstork1 Profile Picture
    69,389 Most Valuable Professional on at

    Are you trying to add images to a Word Template doc?  Or how are you creating the Word doc and adding the pictures now?  Please post this as a new question because its not the same as adding pictures to HTML.

  • jkb6011 Profile Picture
    122 on at

    Correct @Pstork1 , I'm trying to add images to a Word Doc Template. I've posted a question about it here:

     

    https://powerusers.microsoft.com/t5/Building-Flows/Populate-to-a-Microsoft-Word-Template-with-Multiple-PNG/td-p/1554013

     

    Thanks for taking a look, appreciate any feedback.

  • Pstork1 Profile Picture
    69,389 Most Valuable Professional on at

    If you Get File Content from wherever the document is stored (and its a png or jpg) you can add the file contents to an image control in the Word Template.  You can only add one image per control.

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 Automate

#1
Vish WR Profile Picture

Vish WR 889

#2
Valantis Profile Picture

Valantis 830

#3
Haque Profile Picture

Haque 505

Last 30 days Overall leaderboard