Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How to set default (but not automatic) option for viewing PDF files

  • 5 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 cor-el

more options

How can I set the default option for opening PDF files in Firefox? I'm not asking about setting the automatic handler. I don't want PDF files to open in anything automatically. I want to get the dialog box asking me "What should Firefox do with this file," but I want to set one of the options to be the one that's pre-selected so all I have to do is click OK. (I don't want to have to choose the preferred option each time by clicking its radio button and then OK.)

Recently, these dialogs always seem to have the "Open with Firefox" option pre-selected. Since I usually want to open PDFs with Adobe Acrobat, I have to click on that radio button and then click OK. I just want to click OK, except in the few instances when I want to save the file or use the internal viewer.

So how do I designate the default option?

How can I set the default option for opening PDF files in Firefox? I'm not asking about setting the automatic handler. I don't want PDF files to open in anything automatically. I want to get the dialog box asking me "What should Firefox do with this file," but I want to set one of the options to be the one that's pre-selected so all I have to do is click OK. (I don't want to have to choose the preferred option each time by clicking its radio button and then OK.) Recently, these dialogs always seem to have the "Open with Firefox" option pre-selected. Since I usually want to open PDFs with Adobe Acrobat, I have to click on that radio button and then click OK. I just want to click OK, except in the few instances when I want to save the file or use the internal viewer. So how do I designate the default option?
附加的畫面擷圖

所有回覆 (5)

more options

Hi

You can hide that choice by setting browser.helperApps.showOpenOptionForPdfJS = false on the about:config page.

You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.

more options

cor-el said

You can hide that choice by setting browser.helperApps.showOpenOptionForPdfJS = false on the about:config page.

Thank you, but that's not what I meant to ask. I don't want to hide any particular option. I just want to specify which of the several options will be the one that is selected as the default in the dialog box, so I can just hit OK if that's the option I want.

Currently, the "Open with Firefox" option always seems to come up as the one that's pre-selected. I want "Open with Adobe Acrobat" to be the default instead so I can just click OK for the large majority of times when that's what I want, but I still want to be able to select "Open with Firefox" or "Save file" occasionally.

由 Jon9 於 修改

more options

There is also pdfjs.handleOctetStream on the about:config page.

Did you check the setting for "application/pdf" in "Options/Preferences -> General -> Applications" ?

Note that the "Open in Firefox" choice is meant for files that aren't send as application/pdf, but are send as a generic content type like "application/octet-stream" or "content-disposition:attachment" and thus give the download dialog.

more options

If I switch to Always Ask, my Firefox seems to default to the selection I made in the dialog the last time, at least for sites I've visited before. Not sure if that is site-specific; I didn't test many sites.

more options

^:such a choice would be stored in content-prefs.sqlite if it is site specific