How to Stop Mozilla Firefox from Automatically Opening PDF Files After Download
Mozilla Firefox includes a built-in PDF viewer that allows users to open PDF files directly inside the browser. While this feature is convenient for many use...
Mozilla Firefox includes a built-in PDF viewer that allows users to open PDF files directly inside the browser. While this feature is convenient for many users, some prefer to download PDF files without opening them automatically. In business environments, shared computers, Windows Servers, Remote Desktop Servers (RDS), and enterprise networks, automatically opening PDFs can consume system resources, create security concerns, and interrupt workflows.
This guide explains multiple methods to stop Firefox from automatically opening PDF files after download and configure Firefox to always save PDF documents instead.
Why Firefox Automatically Opens PDF Files
Firefox has an integrated PDF viewer called PDF.js. When a user clicks a PDF link, Firefox may:
- Open the PDF in a browser tab.
- Download and automatically open the PDF.
- Open the PDF using Adobe Acrobat Reader or another PDF application.
- Ask the user whether to Open or Save.
The behavior depends on Firefox's file handling settings.
Method 1: Configure Firefox to Always Download PDFs
This is the easiest and most recommended method.
Step 1: Open Firefox Settings
- Launch Mozilla Firefox.
- Click the three horizontal lines (☰) in the top-right corner.
- Select Settings.
Step 2: Navigate to Applications
- Scroll down to the General section.
- Continue scrolling until you find Applications.
Step 3: Locate PDF Settings
- In the search box under Applications, type:
PDF
- Locate:
Portable Document Format (PDF)
Step 4: Change the Action
Click the Action dropdown and select:
- Save File
instead of:
- Open in Firefox
- Use Adobe Acrobat
- Use System Viewer
Result
Firefox will now download PDF files without opening them automatically.
Method 2: Reset Existing PDF Handling Rules
Sometimes Firefox remembers previous choices.
Steps
- Open Firefox.
- Type:
about:preferences
- Press Enter.
- Search for:
PDF
- Change the action back to:
Always Ask
or
Save File
This removes the automatic opening behavior.
Method 3: Disable Firefox Built-In PDF Viewer
If you never want PDFs to open inside Firefox:
Steps
- Type the following in the address bar:
about:config
- Accept the warning.
- Search for:
pdfjs.disabled
- Double-click the setting.
Change:
false
to:
true
Result
Firefox's built-in PDF viewer will be disabled.
PDF files will either:
- Download automatically
- Open in an external PDF application
- Ask what to do
depending on your file handling settings.
Method 4: Remove Automatic Adobe Reader Opening
Sometimes Firefox downloads PDFs but Adobe Reader opens them immediately.
Steps
- Open Firefox Settings.
- Navigate to:
General → Applications
- Search:
PDF
- Check if the action is set to:
Use Adobe Acrobat
or
Use Adobe Reader
- Change it to:
Save File
Result
Adobe Reader will no longer launch automatically after downloads.
Method 5: Clear Firefox Download History and Preferences
Corrupted settings may cause Firefox to ignore your preferences.
Steps
- Open Firefox.
- Press:
Ctrl + Shift + Delete
- Select:
- Download History
- Cache
- Click Clear Now.
Restart Firefox and reconfigure PDF handling.
Method 6: Reset Download Actions
Firefox stores file-type actions internally.
Steps
- Open Firefox.
- Type:
about:support
- Click:
Open Folder
next to Profile Folder.
- Close Firefox.
- Locate and rename:
handlers.json
to
handlers.old
- Start Firefox again.
Firefox will recreate file association settings.
Method 7: Enterprise Deployment Using Group Policy
For organizations managing multiple users:
Install Firefox ADMX Templates
Download Firefox Enterprise Policy Templates from Mozilla.
Configure:
Computer Configuration
└ Administrative Templates
└ Mozilla
└ Firefox
└ Download Settings
Policies can force:
- Save PDF files automatically
- Disable PDF Viewer
- Prevent users from changing settings
Ideal for:
- Windows Server 2019
- Windows Server 2022
- RDS Environments
- Corporate Networks
Method 8: Check Windows PDF Associations
Windows itself may be opening downloaded files.
Steps
- Open:
Settings → Apps → Default Apps
- Search:
.pdf
- Review the assigned application.
If Adobe Reader is configured with automatic launch options, adjust those settings.
Recommended Configuration for Business Environments
For Windows Servers and Office Users:
Firefox
- PDF Action = Save File
- Built-in PDF Viewer = Disabled
- Automatic Downloads = Disabled
Adobe Reader
- Disable opening files after download
Group Policy
- Enforce PDF download behavior
Benefits
- Lower RAM usage
- Better user control
- Reduced accidental document opening
- Improved RDS performance
- Enhanced security
Troubleshooting
PDFs Still Open Automatically
Check:
- Firefox Applications settings
- Adobe Reader preferences
- Windows file associations
- Browser extensions
Firefox Ignores Settings
Reset:
handlers.json
and restart Firefox.
PDF Opens in New Tab
Verify:
pdfjs.disabled = true
and
Portable Document Format (PDF) = Save File
Conclusion
Mozilla Firefox provides several ways to control PDF handling. The most effective solution is to configure the PDF file type action to "Save File" under Firefox Settings. For organizations and Windows Server environments, administrators can further disable the built-in PDF viewer and enforce download behavior using Group Policy. These changes help improve productivity, reduce resource consumption, and provide greater control over downloaded documents.
Was this guide useful?
Your answer helps us keep BISONKB accurate and practical.