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

PDF Viewer and static web enabled storage account

I am trying to display PDFs hosted in a static web enabled storage account in an canvas app. When I set the PDF viewer document property to one of the hyperlinks, the viewer remains grey for about 10 seconds, before changing to the "Couldn't open PDF file; open in my browser instead". 


The PDFs are accessible publicly/anon and can be downloaded via browser without issue. 


Static web is enabled on the account:



PDFs are uploaded to the $web container and have the content type of 'application/pdf'


There are no network restrictions on the storage account:




CORS is not configured/used.


So far I've only found generic information around the pdf viewer - e.g. only HTTPS links are supported, does not support auth or redirects, etc. Nothing specific to static web / storage accounts.  Majority of info seems to relate to people hosting PDFs on sharepoint which isn't relevant.


Does anyone know how the storage account should be configured to allow this to work?





Frequent Visitor

Gave up on this and just used launch() instead.

Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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