05-26-2021 16:32 PM
In this Power Apps tutorial video, we will explore how to use the PDF Viewer control in Power Apps to show PDF files & Office documents (Word, PowerPoint, Excel) from SharePoint Document Library without using Power Automate flows. PowerApps PDF Viewer control is using the API to transform Office documents into a PDF file. We can also use the Thumbnail property to show document previews. This entire concept showcases using the PowerApps PDF viewer control without flow.
#PowerApps #PDF #SharePoint
with great interest i saw your video.
I would like to build an app like this, but i don't have a document library. Instead i have a sharepointlist with the standard column "Attachments". In my case i can be sure that there is only one attachment for exch data set. How can i display such a file like this with the pdf-viewer?
Can you help me?
Thanks so much Reza for this helpful video. I am running into an issue near the last step using a label to get the processed URL in Power Apps for the SharePoint Document library item. But instead of a URL that processes the document, it's only giving me the actual URL of the web page. I know I must be doing something wrong - if anyone is able to point out to me what that is, I'd be most appreciative. Thank you!
@knoseworthy_sjc - In the end, I gave up on this method and instead used a power automate flow to generate the PDF. There are many videos on that method too. I think the one I followed is Show PDF files from SharePoint in PowerApps - Bing video
The gallery OnSelect is Set(varDocumentCurrent, [here is the name of your flow].Run(Gallery1.Selected.Identifier).result)
varDocumentCurrent is a global text variable.
Insert a PDFViewer on the screen and set its Document to "varPDF.pdfcontent"
Hope this is helpful!