cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
testaccPA
Level: Powered On

PDF viewer of share point document libary

hi, i cannot usethe pdf viewer for my share point document libary.

 

i have a galery with folders and a navigation with a text box, but the pdfs are not display.

 

please help

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: PDF viewer of share point document libary

Hi @testaccPA ,

Could you please share a bit more about your scenario?

Do you want to preview PDF files stored in your SP Library folder using PDF Viewer control?

 

If you want to preview PDF files stored in your SP Library folder within PowerApps app directly, I afraid that there is no way to achieve your needs in PowerAppps currently.

 

As an alternative solution, I think the combination of PowerApps and MS Flow (Power Automate) could achieve your needs. Please consider check and see if the following blog would help in your scenario:

https://masteroffice365.com/viewing-pdfs-from-sharepoint-within-powerapps/

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Community Support Team
Community Support Team

Re: PDF viewer of share point document libary

Hi @testaccPA ,

Could you please share a bit more about your scenario?

Do you want to preview PDF files stored in your SP Library folder using PDF Viewer control?

 

If you want to preview PDF files stored in your SP Library folder within PowerApps app directly, I afraid that there is no way to achieve your needs in PowerAppps currently.

 

As an alternative solution, I think the combination of PowerApps and MS Flow (Power Automate) could achieve your needs. Please consider check and see if the following blog would help in your scenario:

https://masteroffice365.com/viewing-pdfs-from-sharepoint-within-powerapps/

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

testaccPA
Level: Powered On

Re: PDF viewer of share point document libary

Thank you has done

Community Support Team
Community Support Team

Re: PDF viewer of share point document libary

Hi @testaccPA ,

Have you solved your problem?

 

If you have solved your problem, please consider go ahead to click "Accept as Solution" to identify this thread has been solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Re: PDF viewer of share point document libary

Since I published that blog, there is actually an even easier to implement workaround 🤗

 

Assuming you have a Gallery control with the Items property set to a SharePoint Data Source for any given Document Library, all you need to do is set the Document property on the PDF Viewer control to:

Substitute (Gallery1.Selected.'{Thumbnail}'.Small, "transform/thumbnail", "transform/pdf" )

 

It doesn't really get any easy then that!

Try it and reply back on this thread if it works for you so other people also know...

Re: PDF viewer of share point document libary

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.downloadUrlproperty 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:

https://youtu.be/poKsDNYm9Jw

https://masteroffice365.com/powerapps/9/#DownloadSolution

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Kudoed Authors (Last 30 Days)
Users online (5,453)