cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

PDF viewer

Hi all,

 

I cant seem to get the pdf viewer to work? can someone explain to me how i add pfd files to the pdf viewer?

 

Thanks in advanace!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @wout1123 

 

Do you want to import the PDF file and show in the PDF Viewer?

The PowerAps Media doesn't support PDF documents. The way to work around the issue was to rename the PDF documents with a JPG extension, that means rename the xxx.PDF to xxx.JPG. This will enable you to upload File to Media.

Annotation 2019-11-20 173145.png

And then, Set the Document property of the PDF Viewer control to the image file.

Snipaste_2019-11-20_17-32-01.png

Since PDF viewer is still in Experimental Stage, there are some limitations with it:

1. The security architecture of PowerApps requires the PDF Viewer to support only HTTPS links, not HTTP.

2. The Document property must link directly to the PDF file. Server redirects or HTML views of the document aren't supported.

3. The server that hosts the document must not require authentication.

4. You may not be able to view a PDF document in your app if the document resides on a server that has restrictive cross-origin resource sharing (CORS) settings. To resolve this issue, the server that hosts PDF documents must permit cross-origin requests from powerapps.com.

Best regards,

Sik

View solution in original post

1 REPLY 1
Community Support
Community Support

Hi @wout1123 

 

Do you want to import the PDF file and show in the PDF Viewer?

The PowerAps Media doesn't support PDF documents. The way to work around the issue was to rename the PDF documents with a JPG extension, that means rename the xxx.PDF to xxx.JPG. This will enable you to upload File to Media.

Annotation 2019-11-20 173145.png

And then, Set the Document property of the PDF Viewer control to the image file.

Snipaste_2019-11-20_17-32-01.png

Since PDF viewer is still in Experimental Stage, there are some limitations with it:

1. The security architecture of PowerApps requires the PDF Viewer to support only HTTPS links, not HTTP.

2. The Document property must link directly to the PDF file. Server redirects or HTML views of the document aren't supported.

3. The server that hosts the document must not require authentication.

4. You may not be able to view a PDF document in your app if the document resides on a server that has restrictive cross-origin resource sharing (CORS) settings. To resolve this issue, the server that hosts PDF documents must permit cross-origin requests from powerapps.com.

Best regards,

Sik

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (3,407)