web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Getting a PDF thumbnai...
Power Apps
Unanswered

Getting a PDF thumbnail in image gallery from SharePoint list attachments.

(0) ShareShare
ReportReport
Posted on by 240

Hello, 

I am attempting to get PDF thumbnail in image gallery from SharePoint list via this URL:

Image = "https://xxxxterprises.sharepoint.com/_layouts/15/getpreview.ashx?path="&ThisItem.AbsoluteUri & "&resolution=6".

As you can see, I am using Image control in the gallery and linking it to SharePoint URL as per this video. 

 

Images do appear, but any other file type will not produce a thumbnail( including PDF).  

 

What am I doing wrong?... and if this is not possible is there a workaround? 

 

nemanjasovic011_0-1659988202234.png

 

 

Thanks.

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    Hi @nemanjasovic011 ,

    Your code is correct and I got the same result in Design studio, however in Play it worked - you might try this.

  • nemanjasovic011 Profile Picture
    240 on at

    Regrettably, it is not working when i have published the app ... could it be that it is some setting at the tenant level ?

  • nemanjasovic011 Profile Picture
    240 on at

    Additionally, when I test the uploaded PDF with PDF Viewer by hard coding the URL I get this...which confirms my suspicion that it might be some setting at the tenant level...if so, please let me know what exactly needs to be done. Thanks. 

    nemanjasovic011_0-1660051184777.png

     

  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    Hi @nemanjasovic011 ,

    I have never struck that issue, so sorry, have no idea where to start.

  • RBoneck Profile Picture
    415 on at

    For anyone wondering several years later: this is a good article about pdfs hosted in SharePoint being displayed in PowerApps. SharePoint requires authentication and therefore is unfortunately not directly accessible by the pdf viewer. The workaround here is a flow.

    https://www.matthewdevaney.com/power-apps-view-a-pdf-stored-in-a-sharepoint-document-library/

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard