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

搜索 | 用户支持

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

详细了解

When I click on a PDF, it reports File type text/plain type (text/plain) is not supported

  • 7 个回答
  • 1 人有此问题
  • 13 次查看
  • 最后回复者为 WestEnd

more options

I'm on a CentOS v6.10 machine with the latest available firefox, (firefox-60.1.0-6.el6.centos.x86_64). When I click on a PDF, it downloads it properly, but when I click on the downloads progress icon and click on the file, it reports "Unable to open document. File type text/plain type (text/plain) is not supported". The default app for PDFs is evince as it has been for years. That worked fine until the recent major update of firefox. If I set it for the standard firefox PDF viewer, the result is still the same.

I'm on a CentOS v6.10 machine with the latest available firefox, (firefox-60.1.0-6.el6.centos.x86_64). When I click on a PDF, it downloads it properly, but when I click on the downloads progress icon and click on the file, it reports "Unable to open document. File type text/plain type (text/plain) is not supported". The default app for PDFs is evince as it has been for years. That worked fine until the recent major update of firefox. If I set it for the standard firefox PDF viewer, the result is still the same.

所有回复 (7)

more options

That is a strange message for many reasons.

If you go out to disk and rename the file with a .txt extension, then launch it in a text editor, is it actually a plain text file, or does it look like a PDF (PDF appears near the start of a PDF)?

If it is a plain text file, or an HTML file, there is some problem with the downloading process. Does this occur on all servers or is it still working normally on some sites?

more options

In linux (and UNIX, for that matter), we have a utility called "file" which inspects a file and reports what it looks like. On this file, it reports, "PDF document, version 1.4", It pays no attention to the file extension. Also, once I found where ff put the file, I was able to bring it up with evince or xpdf, both PDF readers. This happens on all PDF files regardless of site.

more options

Hmm, so different from Windows. Hopefully a Linux users recognizes this behavior.

more options

Thanks for trying.

more options

I would assume that the file isn't saved with the correct file extension (.pdf), either the file extension is missing or is wrong and Firefox defaults to text/plain.

With what file extension are the files saved?

more options

The files are saved properly with a .pdf extension.

more options

bobcatos said

The files are saved properly with a .pdf extension.

Is the original location a pdf file?