cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KUNGFUPANDA559
Helper II
Helper II

PDF Viewer (PDF Size restrictions?)

I'm trying to use the PDFviewer to display forms.  I suspect my issue is one of the following:

 

1.  PDF File Size?

2.  Azure Blob permissions

 

I can copy the URL that was created by logic app, and navigate to resource without issue in a browser.  Yet when I attempt to define the Document property of the pdf viewer, it states that it "Couldn't open PDF file".  When I click the "open in my browser instead",  it navigates without issue.  

 

I've successfully used the PDF Viewer historically using flow.  In this case i'm trying to grab the URL (weblink created through logic app) from file properties in sharepoint. 

 

Thoughts?

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @KUNGFUPANDA559 ,

Since PDF viewer use pdf online, so this has no size limit.

Yes, permission is a problem. Only if you have permission that pdf, then you could view it in powerapps.

Pdf viewer also has these limitations, please check:

1) 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.

 

Here's  a doc about this connector for your reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-pdf-viewer

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
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

2 REPLIES 2
v-yutliu-msft
Community Support
Community Support

Hi @KUNGFUPANDA559 ,

Since PDF viewer use pdf online, so this has no size limit.

Yes, permission is a problem. Only if you have permission that pdf, then you could view it in powerapps.

Pdf viewer also has these limitations, please check:

1) 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.

 

Here's  a doc about this connector for your reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-pdf-viewer

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
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

Forgot to configure CORS for a new resource group (Doh!)  Thanks @v-yutliu-msft 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,070)