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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PDF Multiple pages cutoff
Power Apps
Suggested Answer

PDF Multiple pages cutoff

(1) ShareShare
ReportReport
Posted on by 42
Help,
 
I was using PDF() function, but my 2nd page and succeeding pages are missing. I expandcontainers set already to true, but still getting cut off. Appreciate the guidance Thanks :)
 
Office365Outlook.SendEmailV2(
    User().Email,
    "Test Subject", 
    "Test Body",
    {
        Attachments: Table({
            Name: var8DNumber &"_Print.pdf",
            ContentBytes: PDF(PrintView_1,{Margin: "0,0,0,0", ExpandContainers: true,Orientation: PaperOrientation.Portrait, Size: PaperSize.A4})
        })
    }
);
 
Categories:
I have the same question (0)
  • Suggested answer
    MS.Ragavendar Profile Picture
    7,431 Super User 2026 Season 1 on at
     
    You have added the ExpandContainers: true parameter already which will expand the entire screen this will works for the scrollable screen too. 
     
     
     
    ✅If this helped, please Accept as Solution to help others ❤️ A Like is appreciated 🏷️ Tag @MS.Ragavendar for follow-ups.
  • Suggested answer
    11manish Profile Picture
    3,333 on at
    The issue occurs because the PDF() function in Microsoft Power Apps only exports what is currently rendered in the screen/container. If the content extends beyond the visible container height, additional pages may get cut off, even when ExpandContainers: true is set.
     
    Your email sending via Microsoft Outlook is correct, so the problem is layout and container sizing, not the email function.
     
    Ensure the Parent Container Height Expands
    ExpandContainers:true only works if the container itself is allowed to grow.
     
    Check the container properties of PrintView_1:
    • Height should not be fixed
    • Avoid scrollable containers
    Best practice is to create a separate screen for printing.
     
    Please verify all below in order :
    • Print screen without scrollbars
    • AutoHeight labels
    • Dynamic gallery height
    • Parent container height expands
    • ExpandContainers enabled

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard