Skip to main content

Notifications

Community site session details

Community site session details

Session Id : CBNA1a1wR+FuUf2wExYWN8
Power Apps - Building Power Apps
Answered

Header in all pages - HTML to PDF inside Powerapps

Like (0) ShareShare
ReportReport
Posted on 30 Mar 2021 21:29:57 by 222

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

  • Prakhar_Gupta1 Profile Picture
    51 on 06 Feb 2023 at 13:20:32
    Re: Header in all pages - HTML to PDF inside Powerapps

    Thank you so much for your help.

    Your response helped me.

    Cheers. 🙂 

     

  • Pstork1 Profile Picture
    65,997 Most Valuable Professional on 03 Feb 2023 at 19:08:49
    Re: Header in all pages - HTML to PDF inside Powerapps

    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.

  • Prakhar_Gupta1 Profile Picture
    51 on 02 Feb 2023 at 07:45:09
    Re: Header in all pages - HTML to PDF inside Powerapps

    @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

  • JoaoN Profile Picture
    222 on 01 Apr 2021 at 14:23:46
    Re: Header in all pages - HTML to PDF inside Powerapps

    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)

  • Pstork1 Profile Picture
    65,997 Most Valuable Professional on 01 Apr 2021 at 14:17:25
    Re: Header in all pages - HTML to PDF inside Powerapps

    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.

  • JoaoN Profile Picture
    222 on 01 Apr 2021 at 13:51:40
    Re: Header in all pages - HTML to PDF inside Powerapps

    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 Profile Picture
    65,997 Most Valuable Professional on 31 Mar 2021 at 22:23:25
    Re: Header in all pages - HTML to PDF inside Powerapps

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

  • JoaoN Profile Picture
    222 on 31 Mar 2021 at 22:10:46
    Re: Header in all pages - HTML to PDF inside Powerapps

    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!

  • Verified answer
    Jagadeeshk Profile Picture
    457 on 31 Mar 2021 at 00:56:36
    Re: Header in all pages - HTML to PDF inside Powerapps

    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

  • Verified answer
    Pstork1 Profile Picture
    65,997 Most Valuable Professional on 30 Mar 2021 at 21:34:13
    Re: Header in all pages - HTML to PDF inside Powerapps

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard
Loading started