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 weird issue
Power Apps
Unanswered

PDF Function weird issue

(8) ShareShare
ReportReport
Posted on by 162

Hello,

 

Experiencing strange behavior with the PDF Function.  When I run the canvas app in the edit designer, the pdf generates the full pdf, however - when i run the canvas app normally (not in the edit designer) it only generates the 1st page of the pdf.  Anyone else experiencing this?

here's my pdf function: 

Set(varPDFContent, PDF(
scrnFinalEval,
{
Orientation: "Landscape",
ExpandContainers: true
}
))

 

I then have the pdf displayed in the PDF viewer control, and am also saving it to a Sharepoint library. In both cases, the issue described above is occurring.


Categories:
I have the same question (1)
  • kevinlowe Profile Picture
    66 on at

    Same issue here - although I can't get a multi-page even in edit mode. expandcontainers:true still won't create more than one page, even though it did it just fine last week.  It's not an issue with the expansion - collapsing that container to super small still gives me one full page. It just won't create more than one page. This was working as recently as last week.

  • VinceThePro Profile Picture
    34 on at

    Hello - i have the same problem. I use 

     

    ViewForm(FormEvenement);;
    Set(docEventPDF; PDF(MainSectionContainer2; {ExpandContainers:true}))

     

    But I don't have all the contents of the containers developed and printed in the PDF. It did work one day...



  • RobKP Profile Picture
    5 on at

    Same issue working fine one week then not the next 

    using:

    Set(myPDF,PDF(DetailScreen1,{Size:PaperSize.A4,DPI:80,Orientation:"portrait",Margin:"1px",ExpandContainers: true }));

     

  • Tasha_S Profile Picture
    Microsoft Employee on at

    Hi folks! Thank you for sharing your feedback. We did push out a fix for the issue resulting in single page PDFs which should be available in preview region environments this week. Please give it a try when you are able and let us know if you continue to experience challenges! 

  • kbarber Profile Picture
    162 on at

    Thanks for the information @Tasha_S !
    Sorry for my ignorance, but does anyone know how to access a "preview region environment"?

  • VinceThePro Profile Picture
    34 on at

    Hello - i have still this issue this day

  • RobKP Profile Picture
    5 on at

    I have tried this fix does not seem to work as advertised. In the end to get multiple pages in my pdf, that I email to the user of the app,  I had to copy the form into a Canvas. Then manually set the size of the canvas to an egregious size to capture all data and this works well enough for me. Main issue is the page breaks.  

  • bgoslin Profile Picture
    5 on at

    Also running into this issue and having to work around by saving a very large canvas since expand containers does not seem to function correctly. Not sure how long it will take for the fix to move out of preview regions (can't access) but any updates would be great.

  • Paul_Efe Profile Picture
    5 on at

    Same issue here. 19/7/2023

  • Viliam Juricek Profile Picture
    70 on at

    I am able to create multipage PDF, it has worked for me for about 4 months now. However, currently a slow performance issue has come up. In the Power Apps Studio the pdf function takes about 10s to complete, however when in play mode it takes 2+ minutes. What's even wierder is that in the network tab there is no specific reason for this taking so long, no fetching images or anything, just that what pdf function does seems to be saeparated by very large time gaps and somehow the entire function freezes the user interface. I'm using the pdf function inside custom page opened as modal window in model-driven app. Anyone experiencing similar issue?

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard