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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to add pdf to pdf ...
Power Apps
Unanswered

How to add pdf to pdf viewer

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

 

Maybe its a very easy fix but i cant seem to get it working. How do i add an pdf file to the pdf viewer in media in Powerapps?

 

When i try to do it via images in the settings i get an error message.

 

Thanks in advance!

 

 

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    You cannot use a local PDF file directly in PDF viewer control. Show the PDF file inside PDF viewer control by setting its Document property to the URL, enclosed in double quotation marks, of the file that you want to show. 

     

    More detailed information about PDF viewer, please refer to:

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

     

    Regards,

    Mona

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    hi @v-monli-msft 

     

    The problem with this is that document is stored on a sharepoint site which requiers authentication, how do i solve this?

     

    Thanks!

  • MasterOffice365 Profile Picture
    184 on at

    This following one statement in the Document property on a PDF Viewer control will dynamically convert many document types to PDF you can display in your apps such as Word documents, PowerPoint presentations, HTML files. Loads more. For PDF files I don't think this is as consistent as the alternate technique below is.

    Substitute( Gallery1.Selected.Thumbnail, "transform/thumbnail", "transform/pdf" )

     

    There is a more consistent way of doing it with PDF documents using the Graph APIs which surface a "@content.downloadUrlproperty for any file, but this property in particular works 100% of the time, and once again you only need to set the Document property on the PDF Viewer to this field using the PA_Graph_DriveItems Flow I've shared on a really long blogs that speaks to loads more things you equally do using those APIs. 

     

    Rather download the simplified version of demo app I've shared on that blog, and all the other Flows if you want to:

    https://youtu.be/poKsDNYm9Jw

    https://masteroffice365.com/powerapps/9/#DownloadSolution

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard