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 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.

Advertisement

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

  1. Launch Mozilla Firefox.
  2. Click the three horizontal lines (☰) in the top-right corner.
  3. Select Settings.

Step 2: Navigate to Applications

  1. Scroll down to the General section.
  2. Continue scrolling until you find Applications.

Step 3: Locate PDF Settings

  1. In the search box under Applications, type:
PDF
  1. 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

  1. Open Firefox.
  2. Type:
about:preferences
  1. Press Enter.
  2. Search for:
PDF
  1. 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

  1. Type the following in the address bar:
about:config
  1. Accept the warning.
  2. Search for:
pdfjs.disabled
  1. 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

  1. Open Firefox Settings.
  2. Navigate to:
General → Applications
  1. Search:
PDF
  1. Check if the action is set to:
Use Adobe Acrobat

or

Use Adobe Reader
  1. 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

  1. Open Firefox.
  2. Press:
Ctrl + Shift + Delete
  1. Select:
  • Download History
  • Cache
  1. Click Clear Now.

Restart Firefox and reconfigure PDF handling.


Method 6: Reset Download Actions

Firefox stores file-type actions internally.

Steps

  1. Open Firefox.
  2. Type:
about:support
  1. Click:
Open Folder

next to Profile Folder.

  1. Close Firefox.
  2. Locate and rename:
handlers.json

to

handlers.old
  1. 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

  1. Open:
Settings → Apps → Default Apps
  1. Search:
.pdf
  1. 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.

 

#MozillaFirefox #FirefoxPDF #PDFDownload #FirefoxSettings #FirefoxTips #FirefoxSupport #BrowserSettings #PDFViewer #AdobeReader #FirefoxBrowser #ITSupport #TechnicalGuide #WindowsSupport #BrowserManagement #FirefoxAdmin #EnterpriseFirefox #MozillaSupport #PDFManagement #FirefoxConfiguration #WindowsServer #RDS #RemoteDesktop #SystemAdministrator #DesktopSupport #ITAdministration #BrowserTroubleshooting #FirefoxEnterprise #PDFFiles #DownloadSettings #FirefoxHelp #ComputerSupport #TechTutorial #BrowserSecurity #OfficeIT #HelpDesk #SystemSupport #FirefoxPolicy #PDFHandling #WindowsAdministration #FirefoxGuide #BusinessIT #EnterpriseSupport #BrowserOptimization #ITTips #TechnologyGuide #WorkplaceIT #FirefoxUserGuide #MozillaBrowser #PDFSettings #ComputerTips

 
 


mozilla firefox pdf download firefox pdf settings stop firefox opening pdf automatically firefox save pdf instead of open firefox pdf viewer disable firefox pdf download issue firefox download pdf automatically disable pdfjs firefox firefox applic