Skip to main content
Community site session details

Community site session details

Session Id : PNlluEa/waj85gaUVaiyIj
Power Pages - Customize & Extend
Answered

How to show PDF Content in page where PDF file already exists?

Like (0) ShareShare
ReportReport
Posted on 23 Oct 2022 09:42:33 by

Hi Colleagues! I have to show PDF invoices in Power Apps Portal (or Powerpages it's the same as I understand). I managed to solve this task by Notes. I got the following:

gavexe_0-1666517829958.png

But I want to show the PDF Content right here. To provide the opportunity to view the PDF before download it.

I found the way to embed a PDF to the page, 

gavexe_1-1666517977950.png

but how to address to the PDF which is already exists on the page? (see the previous picture).

 

Categories:
  • Verified answer
    GeraldGut Profile Picture
    92 on 07 Nov 2022 at 13:03:43
    Re: How to show PDF Content in page where PDF file already exists?

    Hi @Anonymous,

     

    I have developed a list where I can show invoices as invoice records.

    Inside of the invoice record there is a note which contains the pdf attached.

    What I do is during creation of the note which contains the attachment, I fill a field with the direct link to the attachment (PDF file).

     

    This allows us to show a invoice list on portal with a direct link field to the PDF-Attachment. Clicking the link opens the PDF separately.

    I think this approach should also help you to be able to show the PDF directly within a webpage.

     

    To include a PDF directly, I used following code within a page:

     

    <iframe src="URI.pdf" style="height:1200px; width:820px;border:none" width="100%"></iframe>

     

     

    Therefore you would only need to create the direct link to the pdf and include the value on this code snippet.

     

    Does this help?

     

    Best regards,

    Gerald Gut

     

    EDIT:

    The syntax for the direct link looks like follow:

    GeraldGut_1-1667826709076.png

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35

Featured topics