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

Community site session details

Session Id : xVOHoxtlX4n9QBbMvPznOC
Power Apps - Building Power Apps
Answered

Pdf function not getting whole scrollable screen when published

Like (0) ShareShare
ReportReport
Posted on 14 Jun 2023 14:04:30 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:
  • tomschneider Profile Picture
    4 on 26 Jan 2024 at 10:21:13
    Re: Pdf function not getting whole scrollable screen when published

    @Prabhakar_S 

  • tomschneider Profile Picture
    4 on 26 Jan 2024 at 10:20:24
    Re: Pdf function not getting whole scrollable screen when published

    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!

  • Community Power Platform Member Profile Picture
    on 14 Jun 2023 at 15:00:01
    Re: Pdf function not getting whole scrollable screen when published

    Thank you so much @Prabhakar_S ! This worked great.

  • Verified answer
    Prabhakar_S Profile Picture
    735 Moderator on 14 Jun 2023 at 14:30:02
    Re: Pdf function not getting whole scrollable screen when published

    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"

                }

            )

        }

    );

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete