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 Platform Community / Forums / Power Automate / Repeated header/table pdf
Power Automate
Answered

Repeated header/table pdf

(0) ShareShare
ReportReport
Posted on by 901

My apologies, already ask in the Power Apps community, just wanted to ask here before I give up and have to turn to either Encodian or Muhimbi PDF.

 

Using One Drive connector.

 

Wanted to see if it's possible to have the logo and table data repeated into different pages. Below is the code l'm using. Please let me know if it could be done. Been very frustrated.

 

Scenario: User will submit batches,  Example: 1 pdf with have multiple pages, each pages with the logo and data.

 

concat('<!DOCTYPE html>
<html>
<body>
<div style="page-break-after: always">
<div style="width:100%; display:table;">
<div style="display: table-row">
<div style="display: table-cell;">
<img src="',variables('PDFImage') , '" width="125" height="90"><br></div>
<div style="display: table-cell;">
<div align="right">
<img src="',variables('logo') , '" width="225" height="90"></div><br></div></div></div>',variables('var_HTML'),'</div>
</body>
</html>')

 

 

Capture.PNG

 

Thank you so much in advance!

 

 

Categories:
  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @oappdev 

     

    I've been lingering to see what others thought on this one - I think it's possible but it might involve a hack or trick or two which might not be great for production but it depends on your circumstances.

     

    I think the main problem here is splitting pages.  I don't believe there is an easy way to split other than trying to get the size of your HTML page big enough to fill a page when it is split.  Could be hit and miss.  You might need to experiment filling a page with blank lines or padding of some description.

     

    You could have your logo appear as an img tag in the html, either from SharePoint or Online. 

     

    The other option(s) you have is building an Excel Template and use Office Scripts.  I did a recent demo of dynamically filling in Excel Templates using this method here.  It might be possible to gauge page sizes by the number of rows?

     

    Word Templates, you can pass dynamic data to a word file without premium features but it is a hack.  Another article of mine here.

     

    Would be interested to see where this one goes.

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here

  • oappdev Profile Picture
    901 on at

    Thank you @DamoBird365 Will post an update once I get it to work.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard