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 / Gallery view to PDF issue
Power Apps
Answered

Gallery view to PDF issue

(0) ShareShare
ReportReport
Posted on by

I am trying to  Download Gallery view to PDF . But its not working.

Can some one provide step by step to do that ?

Categories:
  • Verified answer
    SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @Bhanu2023 

     

    The new Power Apps PDF Function can generate a PDF document from any screen or control. It makes the task of creating PDFs very simple and only requires a standard license. Once the PDF is generated we can then view a PDF and download a PDF from directly inside of the app itself. In this article I will show you how to use the Power Apps PDF Function.

     

    I found this interesting guide from: https://www.matthewdevaney.com/power-apps-pdf-function-create-view-download-pdfs/


    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • Bhanu2023 Profile Picture
    on at

    @SpongYe - I tried the last option-  the one that I was looking for . Some how It was not working Download( DownloadPDFFromPowerApps.Run( { name: $"WorkOrder_{Text( Now(), "yyyymmddhhmmss" )}.pdf", contentBytes: varWorkOrderPDF } ).path );

  • SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @Bhanu2023 

     

    I had the same error, problem was the missing file property in my case

     

    Download( 
     DownloadPDFFromPowerApps.Run({ 
     file: {
     name: $"WorkOrder_{Text( Now(), "yyyymmddhhmmss" )}.pdf", 
     contentBytes: varWorkOrderPDF 
     }
     }).path
    );

     

     

    The reason you must type “file” in your parameters is you did not set the Power Automate input field to “required.” If you did set it to required, the word “file” is not necessary.

     
    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • Bhanu2023 Profile Picture
    on at

    @SpongYe - could you please guide , for 

    DownloadPDFFromPowerApps

    do i need to create a power automate flow ?  As well as for varWorkorderPdf do i need to set any thing ? 

    varWorkOrderPDF

     

  • Verified answer
    Bhanu2023 Profile Picture
    on at

    @SpongYe - any thought on above questions? Little bit confused on above 2 item. 

    DownloadPDFFromPowerApps

     

    varWorkOrderPDF
  • Verified answer
    SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @Bhanu2023 

     

    You need to create a Power Automate flow that needs to get triggered.

    DownloadPDFFromPowerApps.Run

     

    The varWorkOrderPDF needs to be set when on the button to view it as PDF:

    Set(
     varWorkOrderPDF,
     PDF(
     con_WorkOrder,
     {ExpandContainers: true}
     )
    );

     

    Hope this help. 

    I also got the information from the link aboved that I shared with you.

     
    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard