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
Thank you so much for your help.
Your response helped me.
Cheers. 🙂
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.
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
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)
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.
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?
The same issue. I did sign up for a trial of the Encodian connector. It does do headers, footers, and page numbers.
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 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
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.
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional