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

Pdf function not getting whole scrollable screen when published

(0) ShareShare
ReportReport
Posted on by

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 (1)
  • 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
    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

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