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

搜尋 Mozilla 技術支援網站

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

了解更多

Is there a tag to disable firefox's horrible pdf viewer?

  • 3 回覆
  • 10 有這個問題
  • 15 次檢視
  • 最近回覆由 cor-el

more options

Hello,

As we all know, pdf.js is now implemented in firefox. I want to start by saying I think it WILL be a great thing.

While it WILL a great thing, right now it's absolutely horrid. We run a local paper (about 9,000 papers per week...) and post our issues online every week. When viewing our (and many other's) PDFs online in Safari, they look great. In Firefox however, it is absolute nonsense. Images don't render right leaving big blurry boxes instead. Type-faces are swapped around, spacing is off, things overlap and other problems.

I would like to know if there is any way (whether it be an html tag or some other method) of disabling all of our PDFs from ever opening in Firefox's built in viewer? Our audience will not realize that Firefox is making our hard work look like a scrambled mess and not us.


Any help would be great. Also, if there are some very minor tweaks we could use to make our PDFs render better in Firefox we would consider that. Although in all honesty that would be absolute bullshit, changing our methods to accommodate a plugin that should still be in alpha or beta stages.

Hello, As we all know, pdf.js is now implemented in firefox. I want to start by saying I think it WILL be a great thing. While it WILL a great thing, right now it's absolutely horrid. We run a local paper (about 9,000 papers per week...) and post our issues online every week. When viewing our (and many other's) PDFs online in Safari, they look great. In Firefox however, it is absolute nonsense. Images don't render right leaving big blurry boxes instead. Type-faces are swapped around, spacing is off, things overlap and other problems. I would like to know if there is any way (whether it be an html tag or some other method) of disabling all of our PDFs from ever opening in Firefox's built in viewer? Our audience will not realize that Firefox is making our hard work look like a scrambled mess and not us. Any help would be great. Also, if there are some very minor tweaks we could use to make our PDFs render better in Firefox we would consider that. Although in all honesty that would be absolute bullshit, changing our methods to accommodate a plugin that should still be in alpha or beta stages.

所有回覆 (3)

more options

If I understand correctly, the answer can be found here: How to disable the built-in PDF viewer and use another viewer

more options

In short, that is not what I'm talking about at all.

I myself know how to use another viewer, I mean, come on, I'm a web developer.

What I want is to be able to force other people's browser to not open the file in the built in viewer. Similar to how the Yahoo! Music Player uses tags to determine which files to open in the player and which to download.

more options

The integrated PDF Viewer only works for files send as MIME type "application/pdf".

For now you (until this bug is fixed) can consider this workaround and make use of Bug 738967 if you want to force another PDF viewer.

Using an embed tag seems Firefox making to use the Abode Reader plugin in Firefox and an object tag defaults to the built-in PDF Viewer if enabled.

  • Bug 738967 - pdf.js doesn't work for embedded PDFs
  • Bug 845740 - The web site should be able to suggest that Firefox not to use the built-in PDF viewer

(please do not comment in bug reports: https://bugzilla.mozilla.org/page.cgi?id=etiquette.html)


<embed src="http://www.irs.gov/pub/irs-pdf/f1040ez.pdf" type="application/pdf" height="100%" width="90%">

由 cor-el 於 修改