搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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

  • 3 个回答
  • 10 人有此问题
  • 1 次查看
  • 最后回复者为 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于修改