搜尋 Mozilla 技術支援網站

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

Learn More

I cannot open PDFs in Firefox even though it is set to "Preview in Firefox"

more options

Hello all,

For some reason, even though it's set to do so in settings, I cannot view PDF files in Firefox, only download them.

Has this happened to anyone else?

Cheers!

Hello all, For some reason, even though it's set to do so in settings, I cannot view PDF files in Firefox, only download them. Has this happened to anyone else? Cheers!

所有回覆 (2)

more options

Hi weenusman, you are not completely alone in this problem. We had a similar report last week.

(1) Test on multiple sites.

Some sites may not use the exact content type application/pdf that Firefox uses to recognize Portable Document Format (PDF) files.

(2) Try switching among the options to see whether that helps.

This article will get you to that part of the Options page: View PDF files in Firefox or choose another viewer. Like "turn it off and on again" switching to Adobe and then back to Firefox may help the message get through.

If that doesn't help, check out the other thread I mentioned to see whether that more drastic remedy helps: Cannot view PDF in firefox.

more options

In case this comes up again, I created an extension that can help with this problem. I suggest leaving it off until you run into a problem, and only turning it on (using its toolbar button) while you are downloading files that need it. Otherwise, because it intercepts every response from every web server, it may slow down your browsing.

https://addons.mozilla.org/firefox/addon/content-type-fixer/

If you try it, let me know how it goes.