Hi @geemadhas ,
Could you please share more details about your scenario? Would you like to display PDF file in PDF viewer in Power Apps? Where are those files stored in SharePoint, a library or a list?
If files are stored in a library, please refer to below video and follow the complete steps within it:
https://powerusers.microsoft.com/t5/Webinars-and-Video-Gallery/View-PDF-files-from-SharePoint-library-to-PowerAPPS-PDF/td-p/767317
If files are stored in a list as attachments, you could simply use below formula on Document property of PDF viewer control:
First(Gallery.Selected.Attachments).Value
Note that you only be able to preview the first file of the attachments from a single record.
Speaking of preview PDF files in Azure, in Azure SQL you could preview PDFs being stored in image column or varchar(Max) column. The following video introduces both methods:
https://www.youtube.com/watch?v=uDHLzob53oo
Then for Azure Blob Storage, I do not have a license or account to test it with. Based on the official doc below, it introduces how to view files in the storage:
Connect and upload files to Azure Blob Storage using canvas apps - Power Apps | Microsoft Docs
So, you could try to set below formula in Document property of the PDF viewer control:
Gallery2.Selected.value
The Gallery2 lists all files in the folder selected from Gallery1 which lists all folders.
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.