X
Tap here to go to the mobile version of the site.

Support Forum

How can I deploy the setting for the default PDF action back to Reader?

Posted

Due to a legacy application, we must continue to use an old version of Reader with Firefox. Firefox 19 changes it to the built-in viewer, and once someone has upgraded, setting "pdfjs.disabled" to "true" changes the action to "Always ask" (not back to Reader). If I set it through Tools and Options, it only changes it for the current user.

I need to be able to apply to set this for all users, and preferably in a way that can be deployed to many machines.

Due to a legacy application, we must continue to use an old version of Reader with Firefox. Firefox 19 changes it to the built-in viewer, and once someone has upgraded, setting "pdfjs.disabled" to "true" changes the action to "Always ask" (not back to Reader). If I set it through Tools and Options, it only changes it for the current user. I need to be able to apply to set this for all users, and preferably in a way that can be deployed to many machines.

Additional System Details

Installed Plug-ins

  • Adobe PDF Plug-In For Firefox and Netscape "9.5.3"

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0

More Information

Andrew
  • Moderator
277 solutions 3570 answers

Helpful Reply

In order to change the default reader for PDF files (to not open PDF files with Firefox's internal PDF reader), follow these steps:

  1. Go to Tools > Options (or Firefox > Options).
  2. In the Options window, select the Applications tab.
  3. In the Search field, type PDF. You should find Portable Document Format (PDF).
  4. On the right handside you should find an Action column. Use that to select your favorite PDF reader. In order to view PDF files in Firefox, choose Preview in Firefox.
In order to change the default reader for PDF files (to not open PDF files with Firefox's internal PDF reader), follow these steps: #Go to ''Tools'' > ''Options'' (or ''Firefox'' > ''Options''). #In the Options window, select the ''Applications'' tab. #In the ''Search'' field, type ''PDF''. You should find ''Portable Document Format (PDF)''. #On the right handside you should find an ''Action'' column. Use that to select your favorite PDF reader. In order to view PDF files in Firefox, choose ''Preview in Firefox''.

Question owner

That only changes it for the current user. I need to be able to change it for all users.

That only changes it for the current user. I need to be able to change it for all users.
cor-el
  • Top 10 Contributor
  • Moderator
12526 solutions 115507 answers

Helpful Reply

You will probably have to parse the plugin.disable_full_page_plugin_for_types pref and remove "application/pdf" to make Firefox use the Adobe Reader for embedded PDF files.

See also:

The only way to modify prefs for all users is via a mozilla.cfg file because this file is run as a JavaScript file and can contain privileged JavaScript code.

You can use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.

Place a file local-settings.js in the defaults\pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg.

pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0); // use this to disable the byte-shift

See:

These functions can be used in the mozilla.cfg file:

defaultPref();  // set new default value
pref();         // set pref, but allow changes in current session
lockPref();     // lock pref, disallow changes
You will probably have to parse the plugin.disable_full_page_plugin_for_types pref and remove "application/pdf" to make Firefox use the Adobe Reader for embedded PDF files. See also: *http://mxr.mozilla.org/mozilla-release/source/browser/extensions/pdfjs/content/PdfJs.jsm The only way to modify prefs for all users is via a mozilla.cfg file because this file is run as a JavaScript file and can contain privileged JavaScript code. You can use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values. Place a file local-settings.js in the defaults\pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg. pref("general.config.filename", "mozilla.cfg"); pref("general.config.obscure_value", 0); // use this to disable the byte-shift See: *http://kb.mozillazine.org/Locking_preferences These functions can be used in the mozilla.cfg file: defaultPref(); // set new default value pref(); // set pref, but allow changes in current session lockPref(); // lock pref, disallow changes

Modified by cor-el

Question owner

Thanks cor-el! I already use locked preferences, but I didn't know pdfjs added that one.

Is it possible to use locked preferences to always block "application/pdf" but allow other values that might be added in the future?

Thanks cor-el! I already use locked preferences, but I didn't know pdfjs added that one. Is it possible to use locked preferences to always block "application/pdf" but allow other values that might be added in the future?