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

搜索 | 用户支持

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

详细了解

PDF handling between Firefox 71.x and 72.x

more options

I have a particular PDF (an invoice of sorts) that displays information regarding one company under version 71.0 (and below), but then displays information regarding a different company under version 72.0.2 (and above). It's as if there are two similar documents layered within the same file, but which 'document' is visible depends on which version of Firefox you're running...!? Aside from trying to understand the PDF, itself, can anyone explain how these versions of Firefox differ, in their own handling of PDFs? Something changed between the two releases.

I have a particular PDF (an invoice of sorts) that displays information regarding one company under version 71.0 (and below), but then displays information regarding a different company under version 72.0.2 (and above). It's as if there are two similar documents layered within the same file, but which 'document' is visible depends on which version of Firefox you're running...!? Aside from trying to understand the PDF, itself, can anyone explain how these versions of Firefox differ, in their own handling of PDFs? Something changed between the two releases.

所有回复 (1)

more options

Hi JW, the PDF viewer, PDF.js, is developed over here:

https://github.com/mozilla/pdf.js/

Note: PDF.js does not fully support layers and definitely does not support hidden layers -- they are visible. For best results, remove "hidden" layers from your PDFs.

Firefox 71 vs. 72:

Updates get pulled into Firefox from time to time. It looks like these were the versions used, although I'm not completely sure:

  • Firefox 72: version 2.4.152, pdfjsBuild = '827eb64b'
  • Firefox 71: version 2.4.43, pdfjsBuild = '16ae7c69'

And I don't know Github well enough to compare them. You might want to test the development version here:

https://mozilla.github.io/pdf.js/web/viewer.html

On the right side of the viewer's black toolbar, you'll notice a folder with an up-pointing arrow which lets you load a local file into the page.

Same problem?

You may want to file an issue on the Github repository.