User Agents

Web browsers and everyday web tech, explained

Fix Firefox Printing PDFs When No Printer is Selected

· 5 min read · Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To stop Firefox from attempting to print PDF files or triggering a print dialog when you only intend to view or save them, you must adjust the PDF handler settings in the browser's configuration. This issue usually occurs because Firefox is set to "Open in Firefox" but is interacting with a system-level print command, or it is set to "Print" as the default action for PDF MIME types. By changing the application action to "Save File" or ensuring the internal viewer is correctly configured, you can prevent unwanted print prompts.

What You'll Need

  • A computer with the Mozilla Firefox browser installed.
  • Administrative access to the browser settings.
  • A sample PDF file or a link to a PDF to test the changes.

Step-by-Step

  1. Open Firefox Settings: Launch the Firefox browser. Click the application menu (three horizontal lines) in the top-right corner of the window and select Settings from the dropdown menu.
  2. Navigate to General Settings: Ensure you are on the General panel (this is usually the default view). Scroll down through the options until you reach the Files and Applications section.
  3. Locate PDF Action: Under the Applications subsection, you will see a list of content types and the actions Firefox takes when it encounters them. Scroll through the "Content Type" column until you find Portable Document Format (PDF).
  4. Change the Action: Click on the action listed in the "Action" column next to PDF. A dropdown menu will appear with several options:
    • Open in Firefox: Uses the built-in PDF viewer (most common).
    • Always ask: Prompts you every time whether to open or save.
    • Save File: Automatically downloads the PDF to your designated downloads folder without opening a viewer or print dialog.
    • Use [External Application]: Sends the file to a third-party program like Adobe Acrobat.
  5. Select Save File or Open in Firefox: If your goal is to stop the printing behavior entirely, select Save File. If you want to view the PDF but stop the automatic print trigger, select Open in Firefox. Avoid any option that mentions "Print" or "System Default" if the system default is set to a print utility.
  6. Test the Configuration: Open a new tab and navigate to a PDF document. Verify that the browser either downloads the file or displays it in the viewer without launching the print dialog.
  7. Advanced Fix via about:config: If the standard settings do not work, type about:config into the address bar and press Enter. Click "Accept the Risk and Continue." Search for pdfjs.disabled. Ensure this is set to false to use the internal viewer. If it is set to true, Firefox may be handing the PDF to a system handler that defaults to printing.

Common Mistakes

  • Confusing 'Save' with 'Print to PDF': Some users select "Print to PDF" in the print dialog thinking it saves the file. This actually creates a new PDF version of the page and triggers the print spooler, which can lead to the very loop you are trying to avoid.
  • Ignoring Browser Extensions: Some PDF-related extensions can override native Firefox settings. If the print dialog persists, check your installed add-ons for any "PDF Manager" or "Print Helper" tools.
  • Overlooking OS-Level Defaults: If Firefox is set to "Use Windows/macOS Default," the problem may not be in Firefox, but in the operating system's file association settings where PDF is linked to a print-first application.

Tips

  • Use 'Always Ask': If you frequently switch between saving PDFs for archives and viewing them for quick reading, the "Always ask" setting is the most flexible choice.
  • Clear Cache: If you have changed the settings but the browser still behaves oddly, clear your cache and cookies to ensure no old session data is forcing a specific action.
  • Update Firefox: Ensure you are running the latest version of the browser, as PDF.js (the internal viewer) is frequently updated to fix bugs related to rendering and printing.

Troubleshooting

If the print dialog still appears after changing the application settings, try the following steps:

  • Check for Malware: Some adware can hijack PDF handling to force redirects or print prompts. Run a security scan of your system.
  • Disable Hardware Acceleration: In Settings > General > Performance, uncheck "Use recommended performance settings" and then uncheck "Use hardware acceleration when available." Restart Firefox and try again.
  • Test in Safe Mode: Hold the Shift key (Windows) or Option key (Mac) while launching Firefox to enter Troubleshoot Mode. If the printing stops, a third-party extension is the cause.
  • Verify System Print Spooler: If the print dialog is hanging or appearing as a system error, restart your computer's print spooler service to clear any stuck print jobs that Firefox might be trying to resume.

Frequently Asked Questions

Why does Firefox open the print menu instead of the PDF?

This usually happens because the PDF action is set to a system default that is configured to print, or a browser extension is forcing a print command upon loading the document.

Can I stop Firefox from downloading PDFs and just view them?

Yes. In the Settings > General > Applications menu, find PDF and change the action to "Open in Firefox."

Does changing these settings affect other browsers?

No. These settings are specific to Mozilla Firefox and will not change how Google Chrome, Microsoft Edge, or Safari handle PDF files.

What is PDF.js?

PDF.js is the open-source JavaScript library that Firefox uses to render PDF files directly in the browser window without needing external software.

Why is my PDF opening in a separate app instead of the browser?

Your Firefox settings are likely set to "Use [Application Name]" or "System Default," which tells the browser to hand the file over to a dedicated PDF reader installed on your computer.