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.
Has anyone been successful in doing this? Please help and provide any ways that you have gotten it visible.
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
@wjhepworth , @Anonymous ,
I tried to summarize this procedure in this post:
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.downloadUrl" property 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:
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.
@martinav is correct. Per the other related thread:
In that thread there is link to another thread that should you follow a nasty red access denied page loads up instead.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Join us for the next call on June 15, 2022 at 8am PDT.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.