Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Customize & Extend
Answered

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

(0) ShareShare
ReportReport
Posted on 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 at
    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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May 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 >

Featured topics