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 Pages / How to show a PDF file...
Power Pages
Unanswered

How to show a PDF file on a web page

(0) ShareShare
ReportReport
Posted on by 2

I have a Contract field in account table. Field type is File. Is it possible to show this file in on a page (iframe, pdf viewer...)?

 

If I add the field to a form and use it in portal, document is always downloaded.

 

URL: https://site-123456.powerappsportals.com/File/download.aspx?Entity=account&Attribute=cr4c5_contract&Id={{guid}}

 

I don't want that. Instead just show it.

Categories:
I have the same question (0)
  • OOlashyn Profile Picture
    3,496 Most Valuable Professional on at

    Hi @Simply_ti_Red ,

    So what you would need to do is download the file via web API (https://learn.microsoft.com/en-us/power-pages/configure/file-column#web-api) and then use some 3rd party pdf viewer to show the content on the page (depending on the library you might also need to convert received file to base64 etc).

  • Simply_ti_Red Profile Picture
    2 on at

    Thanks @OOlashyn, I'll try that. 👍

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 Pages

#1
Fubar Profile Picture

Fubar 74 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard