PDF Opening Issues

Fix SharePoint PDF Loading Errors in Power Apps PDF Viewer

Khadija KhanKhadija Khan Nov 3, 2026 872 views

Question details

The user is unable to open a PDF stored in SharePoint using the Power Apps PDF Viewer via a direct link.

Fix SharePoint PDF Loading Errors in Power Apps PDF Viewer
Product
Microsoft Power Apps
Device & OS
not provided
Scenario
Attempting to display a PDF document hosted on a SharePoint site directly within a Power Apps application using the URL.
Observed behavior
The Power Apps PDF Viewer fails to load the file and displays the error message: 'Couldn’t open PDF. Open in my browser instead.'
Before you start

Ensure you have active permissions to manage Power Automate flows within your Power Apps environment and have read access to the source SharePoint document library.

Solution 1Recommended

Retrieve PDF Content Using a Power Automate Flow

Bypass the direct URL authentication limitation by using a Power Automate flow to fetch the actual file content from SharePoint and pass it to Power Apps.

The Power Apps PDF Viewer control often struggles with securely authenticating direct SharePoint links, which triggers the 'Open in my browser' error. Fetching the file content directly as data resolves this restriction.

1
Create a Power Automate Flow

Navigate to the Power Automate interface and create a new flow with a 'PowerApps' trigger so it can be called directly from your application.

2
Add the SharePoint Action

Insert a new step and search for the SharePoint 'Get file content' action. Select your SharePoint Site Address and specify the File Identifier for your PDF.

3
Return Content to Power Apps

Add a 'Respond to a PowerApp or flow' action. Create a text output variable and assign the SharePoint file content to it so the data is sent back to your app.

4
Update the PDF Viewer Property

In your Power Apps studio, set the 'Document' property of your PDF Viewer control to the variable that calls and stores the result of your newly created Power Automate flow.

Retrieve PDF Content Using a Power Automate Flow
Handling Slow Load Times: Passing large PDF files through Power Automate may result in slower loading times (sometimes up to 20 seconds). If performance remains an issue for your client, consider compressing the PDF or seeking optimization advice on the official Power Apps community.
Free Microsoft Office alternative

Manage and View PDFs Seamlessly with WPS Office

If you are looking for an easier way to read, edit, and manage PDF documents without building complex application flows, WPS Office offers a comprehensive, lightweight solution. It seamlessly handles PDFs alongside your standard document formats.

  1. 1. Download and Install: Get the free WPS Office suite from the official website and run the quick installer.
  2. 2. Open Your PDF: Launch WPS Office and drag your PDF document directly into the workspace to view it instantly without loading errors.
  3. 3. Edit and Save: Use the dedicated PDF tools to highlight text, add annotations, or modify pages before saving or sharing.
Free and lightweight Office suite for everyday tasksHigh compatibility with Microsoft Word, Excel, PowerPoint, and PDF formatsBuilt-in PDF reader and editor that operates smoothly without complex setupsCross-platform support for Windows, Mac, Linux, iOS, and Android
microsoft office alternative - wps office

Frequently Asked Questions

Why does the Power Apps PDF viewer show 'Open in my browser instead' for SharePoint links?

This error occurs because the PDF Viewer control in Power Apps cannot seamlessly pass authentication tokens to secure SharePoint URLs. It prompts you to use a browser where you already have an active, authenticated session.

How can I improve the PDF loading time in Power Apps?

If your PDF takes 20 seconds or more to load using a Power Automate flow, the file size might be too large. Try compressing the PDF before uploading it to SharePoint. For highly specialized performance troubleshooting, it is recommended to post your issue on the official Power Apps community forums.

Does the Power Apps PDF Viewer support public URLs?

Yes, the Power Apps PDF Viewer can easily load PDFs hosted on public URLs that do not require any login or authentication. The issues primarily arise with secure enterprise links like SharePoint.