I am trying to display non-PDF files in power apps using the Preview PDF feature. The main solution I have seen involves using a gallery connected to a SharePoint Document Library and using "Substitute( gal_Files.Selected.Thumbnail.Large, "/thumbnail", "/pdf" )" in the Document property of the PDF Previewer.
My issue is that I need to filter this gallery of images to be specific to the details form screen it lies in. I do not want the user to see all of the documents in the SharePoint Document Library, only those that are in the attachment box of the form.
If this is not possible, is there another way I can use Preview PDF to display PDF + non-PDF files?
https://youtu.be/vqK29FWbLxU?si=MWf-QKDzUOO-5eSO
Solved: PDF viewer not working - Page 2 - Power Platform Community (microsoft.com)

Report
All responses (
Answers (