Hi,
I have created a canvas based application using containers (Containers inside a Container, not used form) and added pdf function to generate pdf document and it was working fine and expanding containers and creating multiple pages without loosing any data. But all off sudden expandcontainers is not working and application is generating file only for active screen.
Removed pdf function and readded still it's not working.
NOTE: It's working fine in Edit mode but not in play mode.
I am not sure how to resolve it, any help would be greatly appreciated.
I had this issue as well, followed the solution from this post and it was resolved:
https://powerusers.microsoft.com/t5/Building-Power-Apps/Pdf-function-not-getting-whole-scrollable-screen-when-published/m-p/2199274#M550902
tl:dr: put all the controls you need in your PDF into a container.
I have same issue. Any resolution?
I am also having that same issue.
I have the exact same issue, any updates on how to resolve it?
Happened on this exact same issue this morning. ExpandContainers:true works like a champ in Dev Mode preview, but once published, no more expanded containers, only a PDF of the active screen. My code is below and is working exactly as expected in preview. I get an email with a full multipage PDF. once I publish and try, i get an email with a single page "screen grab" PDF......I get its experimental but.....this seems pretty critical to success:)
Office365Outlook.SendEmailV2(User().Email,"Travel Form PDF","PDF From PowerApps",{Attachments:Table({Name:"TravelItinerary.pdf",ContentBytes:PDF(NewFormScreen,{ExpandContainers:true})})})
WarrenBelz
78
Most Valuable Professional
MS.Ragavendar
42
mmbr1606
41
Super User 2025 Season 1