Notifications
Announcements
Hello guys.I have an app that use Power Automate to generate PDF file to Onedrive using html code.My table usually have 120 or 150 lines, so the file have some pages. I have a header with a logo and some fixed information.My question is: Is there a way to repeat this header (maybe a footer too) in all pages using html or another solution? Page number would be great too, so user can find information faster. Picture to show part of the PDF file.Thanks
From the testing I've done there is no way to do that using the Convert to PDF available in OneDrive. But I have seen comments that suggest it is possible using the Encodian 3rd party connector. The convert to PDF in that connector honors the CSS page-break-before and after styling.
The header is possible with html, however while convert to pdf using onedrive connector,it will not convert with header. So in similar requirement of mine , I'm creating hmtl file and converting to pdf by print pdf manually. This is the option or we need to go for custom pdf connector
Thank you @Jagadeeshk and @Pstork1 !I made a research about this and, at least in my research, there is no way to do that instead of using an custom conector as you mentioned. Do you think that there is a way insert page number? or it will be the same issue?Anyway thank you for your time!
The same issue. I did sign up for a trial of the Encodian connector. It does do headers, footers, and page numbers.
Hi @Pstork1 .I am using the trial Encodian conector and finally got the header! But I am having an issue.From the seccond page foward, the header is overlapping the content (that begins at the top of the page).is it happening to you too?
Yes, you can't just add the header to all pages unless you set the margins of the pages to allow space for the header and footer. So when you do the Convert HTML to PDF Encodian action make sure you use the advanced settings to set the top margin to allow for the insertion of the header.
Ok.I am using the Onedrive convert option (using Encodian just to insert the header). Do you think there is a way to do that? (Every action of Encodian counts, I am trying to use the free version = 50 actions per month)
@JoaoN @Pstork1 @Jagadeeshk
Hi Joaon,
I see the image attached to your question, so I need help in understanding, how did you bring your company logo to the top right(Header).
I did the same but I am able to bring it, it only comes to the left either at the header or footer.
Please help
two keys here.
1) You need to use a third party connection like the Encodian connector to do the PDF conversion. The built-in convert to PDF won't support independent headers
2) to align it on the right side of the header you need to use CSS styling when building out the header. This is also easier if you put it into a Table cell.
Thank you so much for your help.
Your response helped me.
Cheers. 🙂
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268