I went through the Microsoft Power Apps community looking for a way to view a pdf file in Power Apps.
My scenario is like below:
- Sharepoint list with hyperlink (https) to pdf
- Galery on Power Apps
- Screen with PdfViewer
Gallery onselect property I included:
Navigate(Screen1,ScreenTransition.CoverRight) // Screen1 where PdfViewer is placed
Document property on PdfViewer I included:
Gallery_Operative.Selected.DocLink
My issue: The document doesn't open. However, if I click Open in my browser instead, the document opens perfectly.
I have seen some workaround using Microsoft Flow. But just wondering if some of you experience guys have any idea to suggest.
Many thanks
Solved! Go to Solution.
The big question is where is the PDF stored? You said there is a SharePoint list with a link to the PDF. But if the PDF isn't stored in an anonymous access site then the PDF viewer can't view it directly. If its stored in a SharePoint document library there is a way to view the document using flow. Here's a good blog on how to view a PDF stored in SharePoint using the PDF viewer.
That workaround is the only way I've seen that can display a pdf stored in SharePoint using the PDF viewer.
The big question is where is the PDF stored? You said there is a SharePoint list with a link to the PDF. But if the PDF isn't stored in an anonymous access site then the PDF viewer can't view it directly. If its stored in a SharePoint document library there is a way to view the document using flow. Here's a good blog on how to view a PDF stored in SharePoint using the PDF viewer.
Thanks Pstock1. I see the When a HTTP is receive is a Premium feature. Do you have any other work around instead of using Premium?
Many thanks
That workaround is the only way I've seen that can display a pdf stored in SharePoint using the PDF viewer.
User | Count |
---|---|
183 | |
105 | |
89 | |
44 | |
44 |
User | Count |
---|---|
226 | |
107 | |
106 | |
68 | |
67 |