cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

PDF Viewer

Hi, Does anyone know how to import PDF to Powerapps (media or collection).
According to Microsoft docs one should be able to :
"App makers can work around these limitations by including PDF documents as media resources in the app. That way, the PDF Viewer control can always show the document."
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-pdf-viewer.

When I try to add pdf to Powerapps media i get error message. One my coleague tried to import pdf file content to a collection via MS FLow, but got error from PDF Viewer control that document should come from a 'https'.
Any ideas?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: PDF Viewer

Hi @zdenko_zahorec 

I think there's a problem with PowerApps Studio in that the Media section doesn't allow you to upload PDFs/documents. The way I was able to work around the problem was to rename my PDF file with a JPG extension (ie, I renamed my PDF file to myPDF.jpg). This enabled me to use the file upload feature in File > Media.

 

image.png

 

From there, I was able to view my document by setting the Document property of the PDF Control to myPDF.

 

image.png

View solution in original post

6 REPLIES 6
Highlighted
Super User
Super User

Re: PDF Viewer

Hi @zdenko_zahorec 

I think there's a problem with PowerApps Studio in that the Media section doesn't allow you to upload PDFs/documents. The way I was able to work around the problem was to rename my PDF file with a JPG extension (ie, I renamed my PDF file to myPDF.jpg). This enabled me to use the file upload feature in File > Media.

 

image.png

 

From there, I was able to view my document by setting the Document property of the PDF Control to myPDF.

 

image.png

View solution in original post

Highlighted
Community Support
Community Support

Re: PDF Viewer

Hi @zdenko_zahorec ,

Do you want to import PDF files into your app?

 

I agree with @timl 's thought almost. Currently, within PowerApps, the Media functionality only support uploading media files, e.g. image file, audio file, and video file. We could not use this functionality to upload PDF files directly.

 

On your side, you need to convert your PDF file into a image file via renaming your PDF file's name, "PowerApps.pdf"--> "PowerApps.jpg", then you could upload it using Media functionality. Set the Document property of the PDF Viewer control to the image file.

 

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.
Highlighted
Advocate I
Advocate I

Re: PDF Viewer

Hi @timl , @v-xida-msft 
Thank you for your help. 
It work fine.

Regards, 

Zdenko

Highlighted
Advocate III
Advocate III

Re: PDF Viewer

Thanks!

Highlighted
Regular Visitor

Re: PDF Viewer

What software was used to make the multi-page pdf display in a single jpg file?

Highlighted
Frequent Visitor

Re: PDF Viewer

Great. Thanks for the workaround idea. it worked for me. Great help.

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,441)