Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

PDF Viewer and static web enabled storage account

(1) ShareShare
ReportReport
Posted on by 41

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:

 

OB11_0-1647650190926.png

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

 

There are no network restrictions on the storage account:

 

OB11_1-1647650555309.png

 

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?

 

 

 

 

Categories:
  • OB11 Profile Picture
    41 on at
    Re: PDF Viewer and static web enabled storage account

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,695 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard