cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PAB
Advocate III
Advocate III

PDF Viewer Not Showing PDF

I have tried the following ways to get the PDF Viewer to work:

1. Uploading it in the assets portion (worked in browser, but did not work on phone)

2. Store it to https link and click the link (get the following error message: Couldn't open PDF file)

However no matter what I do I am unable to actually get the pdf visible in the app on my Iphone.

ErrorMsgPdfViewer.PNG

Has anyone been successful in doing this? Please help and provide any ways that you have gotten it visible.

50 REPLIES 50
Anonymous
Not applicable

Hi @zac1 please try clicking here. I just tried the link and it worked for me. 

 

@Anonymous 

Still no luck

 

Snap71.png

I am getting the same.  URL looks like it should go somewhere interesting but I get same red banner.

Anonymous
Not applicable

If the link still isn't working, search "How to open sharepoint PDFs in PowerApps?" and the thread will appear in the search results. It was a thread started by @Arcisze 

 

@Anonymous 

martinav
Community Champion
Community Champion

This following one statement in the Document property on a PDF Viewer control will dynamically convert many document types to PDF you can display in your apps such as Word documents, PowerPoint presentations, HTML files. Loads more.

Substitute( Gallery1.Selected.Thumbnail, "transform/thumbnail", "transform/pdf" )

 

There is a more consistent way of doing it with PDF documents using the Graph APIs which surface a "@content.downloadUrlproperty for any file, but this property in particular works 100% of the time, and once again you only need to set the Document property on the PDF Viewer to this field using the PA_Graph_DriveItems Flow I've shared on a really long blogs that speaks to loads more things you equally do using those APIs. 

 

Rather download the simplified version of demo app I've shared on that blog, and all the other Flows if you want to:

https://youtu.be/poKsDNYm9Jw

https://masteroffice365.com/powerapps/9/#DownloadSolution

Please note that link does not/no-longer exist

The link to that article does not work. It is restricted, for some reason. Is there any way to get the PDF Viewer control to actually display a PDF?? I'm trying to give it a URL to the PDF but nothing works.

Which link are you talking about? This link still works. https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/How-To-procedure-on-how-to-view-a-P...

The link that goes to a subforum "Connecting-to-data" no longer exists.

As mentioned before, if the link doesn't work, just search the forum for the same title "How-To procedure on how to view a PDF file from Sharepoint inside a PowerApp".

Limitations of the PDF Viewer are documented in the reference page.

@tahoon  

 

@martinav is correct. Per the other related thread:

https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/How-To-procedure-on-how-to-view-a-P...

 

In that thread there is link to another thread that should you follow a nasty red access denied page loads up instead.

https://powerusers.microsoft.com/t5/Connecting-to-Data/How-to-open-sharepoint-PDFs-in-PowerApps/td-p...

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (884)