为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

Firefox downloads PDF with wrong extension instead of opening a websites' PDF viewer

  • 3 个回答
  • 7 人有此问题
  • 11 次查看
  • 最后回复者为 decibel

more options

I have a problem with websites that want to provide their own PDF viewer. Instead of launching their viewer, Firefox wants to download the PDF. I'd be perfectly fine with that ***if it downloaded with the correct .pdf extension so that Preview would actually open the PDF***. But that's not what happens; I end up with something like "RetrieveDocument.aspx" or "Retrieve.srv".

I've tried resetting my download options (http://kb.mozillazine.org/File_types_and_download_actions). Didn't help.

I saw some stuff about other plugins I can install. Here's the thing: *this stuff works fine in Chrome and Safari*. Maybe websites aren't tagging their content correctly or something, but this stuff works fine in two other browsers.

I have a problem with websites that want to provide their own PDF viewer. Instead of launching their viewer, Firefox wants to download the PDF. I'd be perfectly fine with that ***if it downloaded with the correct .pdf extension so that Preview would actually open the PDF***. But that's not what happens; I end up with something like "RetrieveDocument.aspx" or "Retrieve.srv". I've tried resetting my download options (http://kb.mozillazine.org/File_types_and_download_actions). Didn't help. I saw some stuff about other plugins I can install. Here's the thing: *this stuff works fine in Chrome and Safari*. Maybe websites aren't tagging their content correctly or something, but this stuff works fine in two other browsers.

所有回复 (3)

more options

Hello,

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.

Did this fix your problems? Please report back to us!

Thank you.

more options

If the server sends the PDF file in a way (type="application/pdf") that Firefox doesn't recognize it as such or even sends the file with a generic file extension then you will have to correct the file extension yourself and/or select the correct application yourself.

You can also contact the website and ask them to send these files in a better way.

more options

I thought Glamdring's post solved this, but it introduces a new problem. When I set firefox to use it's internal viewer the website that initially had a problem (site A) worked, but then other websites (site B) end up asking to download, at which point I'm stuck having to trawl around to find the saved download or I tell it to use Preview which gets me back to a broken status on site A.

Chrome and Safari both handle this.

cor-el: You really think Citibank or my insurance company are going to fix their "broken" website that works perfectly fine with Chrome, Safari and (presumably) IE? I understand that it sucks when people don't follow standards but ultimately it's Firefox users that are the losers here.