HowTo: Firefox Disable Default PDF Viewer / Plugin

I recently updated my Mozilla Firefox. Firefox now includes a built-in PDF viewer that allows me to see PDF files found on the web without a plugin. The built-in PDF viewer is enabled by default. However, I found that this pdf viewer is not working properly with various web-sites, and it works slowly. How do disable the built-in PDF viewer so that I can use the Adobe PDF viewer or other PDF viewer that is shipped with my operating systems?

Tutorial details
Difficulty level Easy
Root privileges No
Requirements Firefox
Est. reading time N/A
Firefox can display PDF files using the any one of the following method: [a] Built-in PDF Viewer. [b] PDF reader plugin. [c] Download and use local pdf reader and more.

Option #1: Set pdf Firefox options

MS-Windows user at the top of the Firefox window, click on the Firefox button and then select Options. Select Applications tab.

A note about Linux users

From the menu bar > Edit > Preferences > Select Applications tab.
Sample outputs:

Fig.01: Setting pdf application preferences

Define the default action for the PDF file:

Fig.02: Set the default action for the pdf file

To change how Firefox handles a pdf file type in the list (type pdf in box), click on its name to select it. Open the drop-down menu to select the download action you want Firefox to use:
  1. Choose an application: To choose a local or web application to handle a type, select the application from the drop-down menu. If you want a local application that is not in the menu to handle the type, select Use other… from the drop-down menu and point Firefox to its location.
  2. Choose a feature or plugin: If you want a feature or a plugin in Firefox to handle the type, and one is available, select it from the drop-down menu.
  3. Save on your computer: Some file types can be saved to your computer. Select Save File from the menu for one of these file types to have Firefox save that type of file to the location specified in the Downloads settings.

Finally, click on the Close button.

Check out related media

This tutorial is also available in a quick video format:

Video 01: Firefox: Disable The New built-in PDF-viewer Under Linux or Unix Oses

Option #2: Set pdfjs.disabled option

Type the following in Location Bar (address bar)
Sample outputs:

Fig.03: Click the button labeled “I’ll be careful, I promise!”

Click the button labeled “I’ll be careful, I promise!“. Type the following in Search bar:
Click on its name to select it > Right click on pdfjs.disabled entry > Select Toggle (set it to TRUE).

Fig.04: Set pdfjs.disabled to true

How do I test new settings?

=> Visit this url and download pdf file.

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 2 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
2 comments… add one
  • bodin nutaro Nov 11, 2014 @ 2:25

    I’ll be careful, I promise

  • Klaus Schilling Sep 11, 2015 @ 8:07

    It can also be disabled by means of adding a line to the profile’s user.js file:

    user.pref(“pdfjs.disabled”, true);

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum