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 - Page br...
Power Apps
Unanswered

PDF function - Page breaks not conclusive

(3) ShareShare
ReportReport
Posted on by 1,594

Hello Power Apps team,

In a canvas Power Apps application I filled a layout container with various layout containers and controls (labels, galleries, etc.).

When I use the PDF function with the following parameters {ExpandContainers: true}, I get a generated PDF where page breaks happens just anywhere, and sometimes right in the middle of a sentence as you can see on the following capture:

 

Image 001.png

 

It would be nice to:

  1. Have page breaks placed between controls
  2. Have a PDF Page Break component that makers could place at their convenience inside their containers that would create a page break when the PDF document would be generated by the PDF function

Thank you,

Emmanuel

Categories:
I have the same question (1)
  • Nawaf_Altheiban Profile Picture
    11 on at

    I am also experiencing same issue, trying to create a pdf report however the content overlaps with the next page.. 

    a temporary solution I came up with, which worked in my case is to set the margins to 0 

    PDF(Screen1, {ExpandContainers:true, Size: "A4", Margin: "0,0,0,0", Orientation: "Portrait"}) 

     

    hopefully editing these parameters will solve your issue..

    until Microsoft team incorporate a "page break" sort of thing to solve the issue

  • R3dKap Profile Picture
    1,594 on at

    Hi @Nawaf_Altheiban,

    I'm really interested in your temporary solution. Why setting the margins to 0 solves the issue? What happens then? Do you mean that the content is not split between two consecutive pages?

  • Nawaf_Altheiban Profile Picture
    11 on at

    Hi @R3dKap ,

    Thanks for taking interest.

     

    what I had noticed is that using the default settings will result in having your content being split between 2 pages (probably because the top margin is like 1 pixel more than the bottom margin or bottom margin is 1 less, etc..  which will somehow keep pushing your content the more pages you have), hence having the margins set as 0, and setting the page size to A4, will make things more consistent, I set my screen size to multiples of 1124 and width to 794 (A4 Ratio), so a height of 1124 would be exactly reflected as a single page in the PDF viewer.

     

    sorry for my bad English, I hope what I said makes sense and is relevant to your issue, please do let me know if you have more questions.

  • CU15101536-0 Profile Picture
    65 on at

    Found the solution watch this video, he adjusts the size on a div using pixels, it's just a matter of trying and finding your sweet spot, might be due to the DPI and sheet size

    https://www.youtube.com/watch?v=YkSNg7B_rps

  • bzqp Profile Picture
    4 on at

    Having a very similar problem. What is more - all the pages after the 1st one seem to cause problems with other software opening the PDF. Adobe Acrobat throws some errors but manages to open it. Photoshop straight up crashes and PDF Tools works, but takes like 10x the time to process compared to other PDFs.

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 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard