web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PDF viewer not working
Power Apps
Unanswered

PDF viewer not working

(1) ShareShare
ReportReport
Posted on by 75

I have used this tutorial to convert a file into PDF online and then try to show that PDF in my app

http://www.cleverworkarounds.com/2018/06/30/some-seriously-powerful-and-free-pdf-functionality-in-powerapps-and-flow-part-1/

 

But all I get is a grey box that states "Couldn't open PDF file", with a Link underneath "Open in my Browser instead" which works perfectly. I.e. the URL I give to the PDF viewer is definitely correct. 

 

The file I'm converting is a HTML file sitting in a Sharepoint Document Library. I'm working for a large corporation so I believe we are in a dedicated environment. Anyone got an idea what causes this issue and/or how to overcome it.

Categories:
I have the same question (0)
  • BungleBrain Profile Picture
    45 on at

    If your PDF lives on SharePoint, it requires an extra step of authentication so isn't currently supported.

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

    Unless something has changed since last time I tried it. I'd love for this to work natively - seeing as I suspect most of us store documents like that on SharePoint!

     

    Edited to say - sorry I saw your link has attempted to tackle this issue directly. I've not tried that approach, so not sure what problems there might be.

  • Maexchen Profile Picture
    75 on at

    thanks, that's annoying. The tutorial I used seems to suggest that it works. 

     

  • v-monli-msft Profile Picture
    on at

    Hi @Maexchen ,

     

    Check if below video could help:

    https://powerusers.microsoft.com/t5/Videos/Real-World-PowerApps-How-to-view-SharePoint-PDF-s-in-PowerApps/m-p/104375

     

    Regards,

    Mona

  • Maexchen Profile Picture
    75 on at

    thanks, but I can't try that because "response" is now a premium connector and the "flow response connector" does not have headers (which I believe might have been the answer to my issue).

     

    Anyone else got an idea or can confirm that they have this working?

  • v-monli-msft Profile Picture
    on at

    Hi @Maexchen ,

     

    If you do not have the access to premium connectors then I'm afraid that this cannot be achieved so far. Sorry for the inconvenience.

     

    Regards,

    Mona

  • Maexchen Profile Picture
    75 on at

    The original tutorial I worked off seems to work for some, so I'm not ready to give up yet.

     

    On the topic of the premium connectors: this is a really bad move from MS, how can I be confident that the app I'm building today is working tomorrow if they randomly make connectors premium that used to be free?

  • v-monli-msft Profile Picture
    on at

    Hi @Maexchen ,

     

    Sorry for the inconvenience. For feedback of PowerApps, please post your comments in below forum:
    https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

     

    Regards,

    Mona

  • Maexchen Profile Picture
    75 on at

    thanks, but I see that as a waste of time. There are good ideas in there that have a lot of support and yet since three years there have been no official reactions to them. what's the point of having that section then?

     

    I've actually stopped developing my idea, I just run into one road block after an other and every time I started running again there was just another. 

  • BungleBrain Profile Picture
    45 on at

    I have to admit I came back to Power Apps after about a years break, and am sad to still find you can't easily view PDFs that are stored on SharePoint.

    Given the "Citizen Developer" mantra, and that I am guessing most citizen developers are storing their PowerApps data in SharePoint lists etc., the inability to view documents within Power Apps which are stored on SharePoint is aggravating.

    Seems the idea is still "planned" as per:

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/PDF-Viewer-support-for-PDF-documents-in-Sharepoint-Libraries/idi-p/17416

    There does seem to be some discussion in there about workarounds but I am yet to try them.

     

  • MasterOffice365 Profile Picture
    184 on at

    There is actually a very easy to use workaround 🤗

     

    Assuming you have a Gallery control with the Items property set to a SharePoint Data Source for any given Document Library, all you need to do is set the Document property on the PDF Viewer control to:

    Substitute (Gallery1.Selected.'{Thumbnail}'.Small, "transform/thumbnail", "transform/pdf" )

     

    It doesn't really get any easy then that!

    Try it and reply back on this thread if it works for you so other people also know...

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard