Forum Discussion
jamescosten
Jun 09, 2023Brass Contributor
Take a URL and Create a PDF in a Gallery
I have a list that contains a URL column and i have a document viewer on my app that i would like to take the URL and it shows in the PDF Viewer. At the moment i have a work around where you press a ...
SvenSieverding
Jun 09, 2023Bronze Contributor
Hi jamescosten
i understand that you want to display a pdf file from SharePoint in the "PDF Viewer Control" in PowerApps.
This is not that easy, as you can't directly reference the link to the pdf item in the control. (Most likely to authentication issues).
You need to "download" the pdf into a data-uri and provide that to the viewer control.
See this article from "Maththew Devaney" for guidance
https://www.matthewdevaney.com/power-apps-view-a-pdf-stored-in-a-sharepoint-document-library/
He is using a flow to download the file into memory and than providing the result to the viewer.
Best Regards,
Sven