I have tried the following ways to get the PDF Viewer to work:
1. Uploading it in the assets portion (worked in browser, but did not work on phone)
2. Store it to https link and click the link (get the following error message: Couldn't open PDF file)
However no matter what I do I am unable to actually get the pdf visible in the app on my Iphone.
Has anyone been successful in doing this? Please help and provide any ways that you have gotten it visible.
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
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.