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

PDF Function - Expand Containers

(1) ShareShare
ReportReport
Posted on by 4

Hi All,

 

I have a screen that I am using the PDF Function on, the expand containers parameter is set to true but it is only outputting a one page document with the 'visible' screen as the only thing that is visible. It is clearly not expanding the containers, the weird thing is that it is working fine in edit mode but once the app is published and you try and use it, this error occurs.

 

Thank you

Categories:
I have the same question (0)
  • Lilu125 Profile Picture
    4 on at

    Same issue. 

  • Freddyli1989 Profile Picture
    10 on at

    Same issue too. it only works in edit mode now.

  • kurtG Profile Picture
    18 on at

    Same issue, where make.powerapps.com works but apps.powerapps.com doesn't for the same application and how it expands a galleryview.

  • Heath616 Profile Picture
    27 on at

    Props to @angee for this fix, maybe it will work in your case: I Inserted a Container named "ContainerPDF" on the screen, then cut and pasted my edit form and buttons into the container, changed the formula in onselect to include PDF(ContainerPDF, {ExpandContainers: true}) and it works in the Powerapp and not just the editor!

  • Freddyli1989 Profile Picture
    10 on at

    Thanks for your sharing. 👍

    There is another method that works too. I'm using below formula to print the screen "scn_Printing". 

    Set(pdfblob,PDF(scn_Printing,{ExpandContainers:true}));

    my printing screen are migrated with a gallery which may generated dynamic rows. The printed pdf cannot print all information in gallery by using below formula in "Screen/Design/Height".

    Max(App.Height, App.MinScreenHeight);

    Now, I fix it simply by changing the "Screen/Design/Height" to maximum number instead of above formula.😂 

     

     

  • kurtG Profile Picture
    18 on at

    Thanks everyone for solution candidates.  In my case moving from a screen to a container worked.  With my code, if I had PDF( myScreen, {ExpandContainer: true}) would work in make.powerapps.com when do Edit/Run but not when released to app.powerapps.com.  Same code behaved different in "DEV" vs. "PROD".  

     

    When I moved my screen into a container, and changed the code to PDF( myContainer, {ExpandContainer: true}) this worked in both "DEV" and "PROD".  Thanks for the suggestions as moving to a container took awhile as when you copy / paste into a container my Y coordinates get messed up.

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard