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 Platform Community / Forums / Power Automate / How to show logo in up...
Power Automate
Unanswered

How to show logo in upper part of pdf file generated using html and power automate?

(0) ShareShare
ReportReport
Posted on by 127

I am able to generate a pdf file by using html and power automate.

Now i want to add logo at the  top section  of the file.

I have tried to make "Get File content using path" as the following diagram and even I have tried it by making before initialize variable but I didn't get  solutions, it  is error.

ISebey_1-1682609705043.png

If i make the Get File content using path at the end of the flow, it works  and shows the logo but it is only at the bottom of my file.

Sebey_3-1682610022497.png

append variable>>

<img src="data&colon;image/jpeg;base64,@{body('Get_file_content_using_path')['$content']}" alt="My Image" />

 

 

Where where should be the Get file content using path should be placed, so as to get the logo at the top part of the file, or any solution by setting variables?

 

 

 

 

Categories:
I have the same question (0)
  • Unknown geen idee Profile Picture
    1,757 on at

    Dear Sebey,

     

    Although I cannot be sure, I do think you can add in image in a pdf in the way that you describe ... the best way I can describe it is because PowerAutomate simple does not have enough information to place/include the image. It is not build for that (in my own words).

     

    What may be a possible solution (which I have used in the past) is to create an excel template which has the image included and you include the data in here ... then you create a pdf out of the excel.

    • You may even be able to make the image dynamic ... but I am not familiar with this.
    • You can add in the data into excel via the 'Add rows' standard excel actions. Play around with it and you will see that the table you have define in the document will expand in your template according to the input.

     

    Hope the suggestion helps, 

    Happy flowing,

    Koen

  • Sebey Profile Picture
    127 on at

    There were syntax error in the Content link in the image. the above flow works fine

  • Unknown geen idee Profile Picture
    1,757 on at

    Thanks Sebey for confirming, learned something new then.

    Would you be able to share more of the flow? I am interesting to see it.

    From what I see, you build up an HTML page ... and convert that to pdf?

     

    Thanks in advance,

    Koen

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard