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.
Firefox has an integrated PDF viewer called PDF.js. When a user clicks a PDF link, Firefox may:
The behavior depends on Firefox's file handling settings.
This is the easiest and most recommended method.
PDF
Portable Document Format (PDF)
Click the Action dropdown and select:
instead of:
Firefox will now download PDF files without opening them automatically.
Sometimes Firefox remembers previous choices.
about:preferences
PDF
Always Ask
or
Save File
This removes the automatic opening behavior.
If you never want PDFs to open inside Firefox:
about:config
pdfjs.disabled
Change:
false
to:
true
Firefox's built-in PDF viewer will be disabled.
PDF files will either:
depending on your file handling settings.
Sometimes Firefox downloads PDFs but Adobe Reader opens them immediately.
General → Applications
PDF
Use Adobe Acrobat
or
Use Adobe Reader
Save File
Adobe Reader will no longer launch automatically after downloads.
Corrupted settings may cause Firefox to ignore your preferences.
Ctrl + Shift + Delete
Restart Firefox and reconfigure PDF handling.
Firefox stores file-type actions internally.
about:support
Open Folder
next to Profile Folder.
handlers.json
to
handlers.old
Firefox will recreate file association settings.
For organizations managing multiple users:
Download Firefox Enterprise Policy Templates from Mozilla.
Configure:
Computer Configuration
â”” Administrative Templates
â”” Mozilla
â”” Firefox
â”” Download Settings
Policies can force:
Ideal for:
Windows itself may be opening downloaded files.
Settings → Apps → Default Apps
.pdf
If Adobe Reader is configured with automatic launch options, adjust those settings.
For Windows Servers and Office Users:
Check:
Reset:
handlers.json
and restart Firefox.
Verify:
pdfjs.disabled = true
and
Portable Document Format (PDF) = Save File
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.