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

Notifications

Announcements

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
    68,707 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
    68,707 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
    68,707 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard