Fix Safari Opens Some PDFs but Downloads Others
Question details
Safari behaves inconsistently when handling PDF links, displaying certain PDFs in its built-in viewer while forcing others to download.

- Product
- Safari / PDF
- Device & OS
- not provided
- Scenario
- Clicking on PDF file links on various websites within the Safari browser.
- Observed behavior
- Some PDF files open directly within the browser window, while other PDF files automatically download to the local device instead of displaying inline.
Ensure your Safari browser is up to date and check your Downloads folder to locate any PDF files that bypassed the browser viewer.
Address Website Server Configurations
Determine if the website's server is forcing the download through specific HTTP headers.
Web servers use HTTP headers to instruct browsers on how to handle files. If a server serves a PDF with a 'Content-Disposition: attachment' header, Safari is forced to download the file rather than display it inline. Browser settings cannot override this server-side instruction.
Test multiple PDF links across different websites to confirm if the download behavior is isolated to one specific site.
If the issue only happens on a specific website, contact the site administrator or support team.
Ask the administrator to configure the server to return PDFs with 'Content-Type: application/pdf' and an inline 'Content-Disposition' value.

Manage Safari PDF Plug-ins
Disable conflicting third-party PDF viewers to ensure Safari's default viewer is active.
Easily Read and Edit Downloaded PDFs with WPS Office
For PDF files that Safari forces you to download, use WPS Office to open, read, annotate, and manage them effortlessly without relying on the browser.
- 1. Download the software: Download and install WPS Office for your device from the official website.
- 2. Locate downloaded PDFs: Open your local Downloads folder where Safari saved the PDF files.
- 3. Open with WPS: Right-click the PDF file, hover over 'Open With', and select WPS Office from the application list.
- 4. Read and annotate: Use the comprehensive PDF tools in WPS Office to read, highlight, or edit the document contents.

Frequently Asked Questions
Why does Safari download a PDF instead of opening it?
This usually occurs because the website's server sends a 'Content-Disposition: attachment' HTTP header. This header explicitly commands the browser to download the file rather than displaying it within the browser window.
Can I force Safari to open all PDFs in the browser?
No, local browser settings cannot override a server's explicit 'attachment' command. If the website dictates that the file must be downloaded, Safari will comply.
How do I change my default PDF viewer?
To change the default viewer for downloaded PDFs on your computer, right-click any PDF file, select 'Get Info' (or 'Properties'), choose your preferred application under the 'Open with' section, and click 'Change All'.
What if Safari opens a blank page instead of the PDF?
A blank page may indicate a broken PDF link, a corrupted file, or a conflicting browser extension. Try clearing your Safari cache, disabling third-party PDF plug-ins in the Websites settings tab, and reloading the webpage.




