Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Experimental Features
Unanswered

PDF() function gallery is perfect in studio but distorted in app

(2) ShareShare
ReportReport
Posted on by 4
I've designed a custom gallery that exports perfectly to PDF, with pagination, when I'm in studio mode. In the published app, the template height expands dramatically, and the images and text overlap and are crowded.
 
If I Lock Aspect Ratio for the entire app, the PDF retains the right format even in the published app. However, the LAR causes problems throughout the rest of the app, including blurring PDFs we view in the app.
 
Does anyone have a solution yet for retaining the proper gallery format for PDFs that:
- are based on galleries
- can have multiple pages
- are in a canvas app that's designed to an unlocked aspect ratio
 
The gallery is in a container with expand set to true, which all works great in Studio.
 
I have tried:
- Portrait Print and Landscape: I can't get a basic gallery to be full screen to even test this
- Sending the PDF blob to Power Automate to convert to PDF (using JSON and content approach)
- Attaching as an email to Outlook
- Setting all images to Fit and maxing the text size with HTMLText controls. This limits the text and image height, but the Template Height still distorts to a massive size in the published app's PDF
 
Thank you for any workaround.
  • Suggested answer
    DA-31101358-0 Profile Picture
    2 on at
    PDF() function gallery is perfect in studio but distorted in app
    Here's how I resolved this: I created a helper app with Locked Aspect Ratio to serve as the PDF creator. When users select the link in the original app to Save as PDF, it sends a deep link with the selected gallery items to the second app, where it formats and saves to PDF correctly. The original app is back to normal appearance and functionality.
  • Nandit Profile Picture
    1,563 Super User 2025 Season 1 on at
    PDF() function gallery is perfect in studio but distorted in app
    Hi,

    Following up to check if you were able to solve this issue?

    Kind regards,
    Nandit
  • Nandit Profile Picture
    1,563 Super User 2025 Season 1 on at
    PDF() function gallery is perfect in studio but distorted in app
     
    It would be great if you could share a few screenshots.
     
    Kind regards, 
    Nandit

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 770 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 494

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399

Featured topics