Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 2YoCfhAeof/6GqoMT/ryhc
Power Apps - Building Power Apps
Answered

view a PDF file from Sharepoint inside a PowerApp withouut premium connector

Like (0) ShareShare
ReportReport
Posted on 16 Mar 2020 14:54:03 by 43

hi everyone i am new in this forum, i am looking for a way to view the pdf on the power app loaded on sharepoint without using premium connectors, someone could show me the procedure step by step, thanks in advance

  • Verified answer
    v-yutliu-msft Profile Picture
    on 17 Mar 2020 at 06:40:59
    Re: view a PDF file from Sharepoint inside a PowerApp withouut premium connector

    Hi @vincenzos1984 ,

    Do you want to display PDF in PDF viewer directly rather than opening PDF documents in an external browser?

    Firstly, if you want to display PDF in PDF viewer, you just need to use 'Link to item' field.

    Two ways:

    1)in gallery, set the arrow button's OnSelect:

    Launch(ThisItem.'Link to item')

    2)set PDF viewer's Document:

    Gallery1.Selected.'Link to item'

     But both of them will open PDF documents in an external browser.

    317.gif

     

     

    Secondly, let me explain why the PDF file not display in PDF viewer directly.

    Not all accessibility features of PDF documents are supported because the PDF viewer is still in the experimental stage. 

    It has many limitations, including the standards of pdf.

    So when PDF viewer can not load the PDF file, it will show the text to make you open it in an external browser.

     

    Here's an alternative solution to work around these limitations, which could make you always display the pdf in PDF viewer directly:

     Include PDF documents as media resources in the app.

    Please notice that you can not upload pdf file directly to powerapps.

    Powerapps now only supports upload Image/Video/Audio.

    So firstly, please download all the pdf files to local in your sharepoint that you want to display in powerapps.

    Then rename all the PDF file with a JPG extension (ie, I renamed my PDF file to myPDF.jpg).

    Then upload them to Powerapps. (File->Media->Images)

    3171.PNG

    Then you could set the PDF viewer's Document to this file's name directly.

    For example:

    'Drawing (1)' //my pdf file

    If you want to display different pdf based on which sharepoint doc item that you select, you could set PDF viewer's Document to like this:

    If("1" in Gallery1.Selected.Name,
     'Drawing (1)',
     "2" in Gallery1.Selected.Name,
     'Drawing (2)',
     ....
    )

    // the pdf file name is 'Drawing (1)','Drawing (2)' in my test, Name filed records the pdf file name in my sharepoint doc.

    You could compare the selected name to decide display which pdf.

    In this situation, you will always view pdf inside your app.

     

    Here's a doc about PDF viewer's limit:

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

    Here's a issue about how to upload pdf to powerapps:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/PDF-Viewer/td-p/261638

     

     

    Best regards,

  • vincenzo1984 Profile Picture
    43 on 16 Mar 2020 at 17:20:08
    Re: view a PDF file from Sharepoint inside a PowerApp withouut premium connector

    the first video use launch function , the pdf open in a web page, i need to see pdf inside app

  • eka24 Profile Picture
    20,921 on 16 Mar 2020 at 16:53:22
    Re: view a PDF file from Sharepoint inside a PowerApp withouut premium connector
    The, first video did not use any premium connector.
  • eka24 Profile Picture
    20,921 on 16 Mar 2020 at 16:50:07
    Re: view a PDF file from Sharepoint inside a PowerApp withouut premium connector
    The, first video did not use any premium connector
  • vincenzo1984 Profile Picture
    43 on 16 Mar 2020 at 16:38:50
    Re: view a PDF file from Sharepoint inside a PowerApp withouut premium connector

    in the video is used response connector that is premium connector :(, its possible to use another connector to have the same results? thanks in advance

  • eka24 Profile Picture
    20,921 on 16 Mar 2020 at 16:12:06
    Re: view a PDF file from Sharepoint inside a PowerApp withouut premium connector
    it really the best approach but if you want to view it inside powerapps then consider https://youtu.be/NTp77benqfQ

    If you like this post, give a thumbs up. Where it solved your issue, Mark as a solution
  • vincenzo1984 Profile Picture
    43 on 16 Mar 2020 at 15:54:49
    Re: view a PDF file from Sharepoint inside a PowerApp withouut premium connector

    thank you very much, the pdf opens in a new page, I need it to open in the Screen2 page, it is possible using its 'Link to item' function, minute 17.51 ​​of the video

  • eka24 Profile Picture
    20,921 on 16 Mar 2020 at 15:04:51
    Re: view a PDF file from Sharepoint inside a PowerApp withouut premium connector
    Watch this video:
    https://youtu.be/jw8bjpU7Alw

    If you like this post, give a thumbs up. Where it solved your issue, Mark as a solution

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
MS.Ragavendar Profile Picture

MS.Ragavendar 32

#2
Rajkumar_M Profile Picture

Rajkumar_M 16 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 14 Super User 2025 Season 1

Overall leaderboard