web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PDF Function and Pagin...
Power Apps
Answered

PDF Function and Pagination

(0) ShareShare
ReportReport
Posted on by 5,325 Super User 2025 Season 2
I've been practicing with the Power Apps PDF function.

I've managed to create a multiple page PDF in Power Apps.

My issue, how do I control the pagination, or cut off for each page.

Currently I am getting individual pages, but the related data may run
over to the next page in a disjointed way.

Is there a way in Power Apps to control the data that appears on each
page of a PDF form created using the PDF function?

Page 1 -
 
 
Bottom of Page 1 carried over to top of Page 2 -

Categories:
I have the same question (0)
  • SwatiSTW Profile Picture
    741 Super User 2025 Season 2 on at
    You can try below steps to make it work
    1. Collect the data and split it into logical groups that fit within one page. Use collections to organize the data for each page.
    ClearCollect(
        Page1Data,
        FirstN(MyDataSource, 10)
    );
    ClearCollect(
        Page2Data,
        LastN(MyDataSource, CountRows(MyDataSource) - 10)
    );
    2. Create separate screens or containers for each page. Add labels, galleries, or other controls to display the data. Bind the first container to Page1Data and the second container to Page2Data.
    3. On the first container, set the Items property to Page1Data.
    Items = Page1Data
    4. On the second container, set the Items property to Page2Data.
    Items = Page2Data
    5. Design each container or screen to fit the required page layout, ensuring proper alignment and spacing.
    6. If using HTMLText for advanced formatting, include page-break CSS for controlling pagination.
     
    7. When generating the PDF, use the Export or Generate function based on the pages or HTMLText you’ve created.
    PDFControl.PDFExport()
    Test the layout by generating the PDF to ensure the data stays within its designated pages. Adjust item counts or container heights as needed.
  • BD-01080338-0 Profile Picture
    44 on at
    There are six sections within the overall document.
     
    Your solution assumes each each section has a fixed height, yes?
     
    This is not the case.
     
    A section may have nothing but a header and one sentence  - "No issues reported "; whereas that same section, in another report, may have a page and a half of identified issues.
     
    This will change week to week, section to section - this is an inspection report.
     
    Is there a way to account for section / page height dynamically?
  • Verified answer
    Pstork1 Profile Picture
    68,711 Most Valuable Professional on at
    The built-in PDF conversion capability doesn't have support for controlling Page Breaks.  The one way to do it is by creating a background image of a specific size to take up a page and using that to control the page breaks. Shane Young explains in this video how to do that. QTT - Power Automate PDF Page Breaks 
     
    To convert an HTML document with dynamic page breaks you need to use one of the third party PDF conversion connectors, like Encodian.  They have support built in for actual page breaks, which the internal function does not.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard