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

PDF viewer control broken only for PDF files from SharePoint( tenant)

(0) ShareShare
ReportReport
Posted on by 240

Hello,

I have an issue where reference to PDF files from clients tenant only(SharePoint -SPO) are not getting rendered in PDF viewer control. Also, an attempt to get thumbnail from SharePoint and link it to image gallery is not working only for PDF files.

 

All I am asking is possible reasons for this behavior, and if there is a configuration in tenant or SPO admin center that will fix this issue.

 

For PDF Viewer, I get -'this file cannot be displayed'; -while image galley gives me 'broke image icon' - and I have confirmed that the thumbnail code works for other tenants.

 

Thank you.

Categories:
  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    I'm not sure about the thumbnail issue, but the problem with the PDF viewer is that it can only display PDFs from anonymous locations.  It can't display a pdf from SharePoint because SharePoint requires a login.  Here;s an article that explains a workaround. Power Apps View A PDF Stored In A SharePoint Document Library (matthewdevaney.com)

  • nemanjasovic011 Profile Picture
    240 on at

    Thanks for the response and clarification. In our scenario we looking for PDF 'preview' to be available in image galley and the solution you have linked, as great as it is,  requires user action which does not meet our requirement.

     

    Does anyone know why linking image gallery to to a thumbnail URL would not work on this given tenant - it is not displaying ONLY PDFs - the method renders images fine? I know that this method works on other tenants as there are tutorials about this.

     

    Thanks.

  • nemanjasovic011 Profile Picture
    240 on at

    Looking at the response from Pstrok1, it could be that this is authentication issue as tenant is using 'non-standard' authentication methods. If true, It would be sufficient if someone can either clarify how PDF rendering in PowerApps is affected by authentication or simply discard my claim above.....again, images render fine - PDFs are broken.

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 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard