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.
Still no luck
I am getting the same. URL looks like it should go somewhere interesting but I get same red banner.
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.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:
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.
@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.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
190 | |
69 | |
50 | |
38 | |
28 |
User | Count |
---|---|
243 | |
112 | |
91 | |
91 | |
71 |