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
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.
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)
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,
the first video use launch function , the pdf open in a web page, i need to see pdf inside app
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
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
MS.Ragavendar
32
Rajkumar_M
16
Super User 2025 Season 1
mmbr1606
14
Super User 2025 Season 1