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 viewer showing blank
Power Apps
Answered

PDF viewer showing blank

(0) ShareShare
ReportReport
Posted on by 195

I have a gallery that renders data in 3 columns.  I need to be able to view the screen of the gallery in pdf.  I watched this video and followed the steps but the viewer shows blank.

 

Here's what I did:

  • Added pdf icon to page and set the OnSelect to Set(varPDFBlob,PDF('Screen1',{Orientation: "Landscape", ExpandContainers:true}));Navigate(Screen2)
  • I created a 2nd screen called Screen2 and added the PDFViewer to it and set the Document property to varPDFBlob

 

When the icon is clicked, all I see if a dark grey blank pdf viewer.  I do notice that in the Document property the following message:

isogunro1_0-1694734434873.png

 

Any ideas what the problem is?

Categories:
  • Michael E. Gernaey Profile Picture
    53,975 Super User 2026 Season 2 on at

    Ok I watched the video. My suggestion is this.

     

    Take out the details related to containers etc. Just do what Reza did first to test.

     

    Add a PDF to your Screen1 directly, just a small one and then do the Set(varPDFBlob,'Screen1'); and set that PDF control document to varPDFBlob.

     

    Does that simple test work?

    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • isogunro1 Profile Picture
    195 on at

    That didn't work either

  • Michael E. Gernaey Profile Picture
    53,975 Super User 2026 Season 2 on at

    What PDF control are you using? I just want to make sure. You turned on the Feature ?

  • isogunro1 Profile Picture
    195 on at

    I turned on PDF function in the Experimental section of the settings.  I'm using the 'PDF Viewer (experimental) control

  • Verified answer
    Michael E. Gernaey Profile Picture
    53,975 Super User 2026 Season 2 on at

    Hi it worked perfectly for me

     

    Did you add a button or something that actually triggered the code? Here is mine and it worked perfect.

    I turned it on. I created a screen. I added a button. I used the code you see below in the OnSelect. I set the document to varPDF and bingo its there

    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

    FLMike_0-1694738922976.png

     

  • isogunro1 Profile Picture
    195 on at

    I see the problem.  I tried it in my personal environment and it works perfectly.  I think the place I work for is blocking it because I see 'security/.....' in the task bar when I click the icon.  Thanks!

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard