cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JoaoN
Helper IV
Helper IV

Header in all pages - HTML to PDF inside Powerapps

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

2 ACCEPTED SOLUTIONS

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

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.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Jagadeeshk
Responsive Resident
Responsive Resident

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

View solution in original post

7 REPLIES 7
Pstork1
Dual Super User III
Dual Super User III

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.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Jagadeeshk
Responsive Resident
Responsive Resident

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

View solution in original post

JoaoN
Helper IV
Helper IV

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!

Pstork1
Dual Super User III
Dual Super User III

The same issue.  I did sign up for a trial of the Encodian connector.  It does do headers, footers, and page numbers.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

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?

 
Pstork1
Dual Super User III
Dual Super User III

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.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

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)

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,732)