In general, the PDF Viewer cannot load authenticated PDFs. Under the hood, the app is running on PowerApps domain, so special measures are needed to fetch data from other domains like Sharepoint. PowerApps handles Sharepoint data types like text and numbers with a particular mechanism.
For PDFs, this related post might be relevant. https://powerusers.microsoft.com/t5/Connecting-to-Data/How-to-open-sharepoint-PDFs-in-PowerApps/td-p...
I may have missed this in another thread but has anybody considered just letting the PowerApps developer just hand the control the PDF content? It is puzzling to me why you went the URL route when it opens so many potential security and connectivity challenges. Any chance we can get a property or a method that allows us to simply upload the bits directly to the PDF? This would be far more secure than forcing us to leave PDFs out in the open for anybody to get. Frankly, it seems easier to code on your end as well.
Was this already a recommendation? Perhaps I just missed it.
Background: So I am using PowerApps to connect to an Azure function that generates a PDF. This Azure function could directly hand the caller the full stream of the PDF. Unfortunately, PowerApps PDF Viewer cannot handle the PDF directly -- it wants a URL to an anonyous (read unprotected) URI.
Problem: Becuase we cannot give the PDF Viewer the stream we to give it a URL to an unauthenticated container. Just saying that to you sounds very frightening. There are mitigations such as Shared Access tokens but they are not hack proof.
Solution: Use a property similar to HTMLText property of the PowerApps HTML Text Control. Let us load the PDF content into a table or record and present it directly to a property called PDFContent. This is the single most secure approach to this because then we can at least be sure only the user we are intending to give the PDF to has access.
Unfortunately, the PDF Viewer does not support reading byte streams directly. Even if the PDF is generated, it requires a URL to be supplied. Authenticated PDFs are not supported in general, the exception being Sharepoint. Check this thread for more about displaying PDFs from Sharepoint. https://powerusers.microsoft.com/t5/Connecting-to-Data/How-to-open-sharepoint-PDFs-in-PowerApps/td-p...
I am facing same issue.
pdf is loading in create mode but not in published mode
any help would be really appreciated. my Session ID: 876be4df-c6ea-47a9-ab43-ddac319559ed
Check it out!
Check it out!
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
The largest Power BI, Power Platform, and Data conference in New Zealand