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

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 

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (5,036)