10-27-2022 09:16 AM
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
Thanks,
Reza Dorrani, MVP
YouTube
Twitter
watch?v=vqK29FWbLxU
Hi Reza,
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?
Kind regards
Jürgen Dietze
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!
Getting same thing wondering if they made changes to url columns structure?
@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!
Kendra
Looks like your "ADDING" a power Automate flow when we are trying not to.
This works perfectly for me but not for others within my organisation. Is there some permissions missing or is there something missing in the hyperlink?
@P3erky87 This is the same issue I am facing as well. It seems to be a GUID for that {specific user} in the appres:// from the *gal.selected.pic column
@P3erky87 and @timt0m - I came here looking for a solution for the same issue. I read that the "appres://..." is dynamic and will be different for each user in the organization (which I believe is what @timt0m was saying). Has anyone found a workaround for this that doesn't involve a flow? If I find one I'll come back and update, but I'm losing hope and almost ready to return to flow (which I very much want to avoid).
Yea, there was a comment in the YouTube video, I found to work. Basically you add a pdf to the root of the folder and put its link in the Pic column.
what I did was *(I use formulas), but could do it with set too.
a
Appres= lookup(data source, name=pdf doc, Pic)
another variable to hold the guid and I think it was like 170 first char to start at than 32.
use
AppresID=Mid(Appres, 170,32)
than inside of the Appres with that GUiD value you add in “& AppresID &” than each users GUiD will be in that spot. Not at my computer so the Mid value might be wrong, but it was like 170 or 171.