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 / Print screen or save s...
Power Apps
Suggested Answer

Print screen or save screen as PDF

(3) ShareShare
ReportReport
Posted on by 67
Hy guys
 
I have the following problem. When saving the screen as a PDF, the layout is no longer correct.
This means that in the Power App everything is on one page/screen and in the PDF it breaks it into two pages.
 
 
 
Can anyone tell me how I can prevent this?
I have already tried to change the settings on the printer such as “Actual size” but unfortunately that doesn't help either.

Pictures are attached
Categories:
I have the same question (0)
  • vipuljain03 Profile Picture
    657 Super User 2025 Season 2 on at
    Have you tried ExpandContainers optional property with PDF function.
     
    E.g. - PDF(Screen1, {ExpandContainers: true}) => A PDF is created where any containers/galleries with more content than is visible are expanded to show all content in the generated PDF.
  • Suggested answer
    SwatiSTW Profile Picture
    741 Super User 2025 Season 2 on at
    1. Set a fixed screen size

      Go to App Settings > Display and set a Custom size like:

      1. Width: 816
      2. Height: 1056 (for A4 portrait)
      3. Turn off Scale to Fit
    2. Put everything inside a container

      Add a Container and place all elements inside it. This keeps everything together when exporting.

    3. Use Power Automate for PDF

      1. Create a new Power Automate flow
      2. Add PowerApps trigger
      3. Add Convert HTML to PDF action
      4. Pass the screen as HTML content
    4. Generate HTML from PowerApps

      Use this in PowerApps OnSelect button:

      Set(varHTML, "html start tag" & YourContentHere & "html end tag");
      PowerAutomateFlow.Run(varHTML);
    5. Fix page breaks in HTML (for Power Automate PDF)

      In Power Automate, use HTML for proper layout:

    6. Print directly from PowerApps

      If you are using Print(), set the container Height = App.Height and Width = App.Width.

    7. Try different print settings

      When saving as PDF, set Margins = None and Scale = 100% in the print dialog.

  • Primo Centurio Profile Picture
    67 on at
    @vipuljain03 thank you, unfortunately that does not solve my problem but nice 
  • Primo Centurio Profile Picture
    67 on at
    @SwatiSTW Thank you very much.
    Is there another possibility without changing the layout or display settings? As I have already programmed the complete app, I would have to adapt everything to the new A4 layout.

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