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 function not getti...
Power Apps
Answered

Pdf function not getting whole scrollable screen when published

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

When I use the pdf function in preview mode I get the full pdf off my scrollable screen. When I try to do the same thing after publishing it cuts off the image at what is viewable by the screen.  The Summary Report 12 PDF is from preview mode the Summary Report 13 is from the published view. Any help would be great!

Categories:
I have the same question (2)
  • Verified answer
    Prabhakar_S Profile Picture
    735 Moderator on at

    Hi @Anonymous ,

     

    Please select all the controls (i.e, label, text input, date picker, etc...) and put them under a single container and write this formula on the "Onselect" property of the PDF creator button,

     

    Office365Outlook.SendEmailV2(

        "abc@outlook.com",

        {

            From: User().Email,

            Attachments: Table(

                {

                    ContentBytes: PDF(

                        Container1,

                        {

                            Orientation: PaperOrientation.Portrait,

                            //Portrait or Landscape

    Size: PaperSize.A4,

                            //Select your page size

    DPI: 150,

                            ExpandContainers: true/* This property makes sure the full content of gallery/containers is expanded as PDF */

                        }

                    ),

                    Name: "pdfname.pdf"

                }

            )

        }

    );

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you so much @Prabhakar_S ! This worked great.

  • tomschneider Profile Picture
    4 on at

    Hello @Prabhakar_S , 

    I have the same issue with the screen-chopping of my canvas app.

    Is there another way to make this work for a whole screen? I essentially use the same code as you, except where you currently have "Container1" I have "EditScreen1".

    Many thanks for your views!

  • tomschneider Profile Picture
    4 on at

    @Prabhakar_S 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 531 Most Valuable Professional

#2
Haque Profile Picture

Haque 261

#3
Kalathiya Profile Picture

Kalathiya 221 Super User 2026 Season 1

Last 30 days Overall leaderboard