iPDF-poppler 密码文档
注意:我不确定这在这里或在超级用户中是否更好,但由于它涉及 poppler 库,我会在这里假设,因为这里的人更有可能知道它是如何工作的。
软件:iPDF 2.12 + Poppler Irex Iliad 的 2.11(最后一次提交 2006 年 12 月 12 日)。来源位于此处。
问题文档:Sciam 数字 PDF(其中任何一个,因为所有文档都是以相同的方式生成的)。
该文档可以使用 Okular、Adobe Reader 和 XPDF 正常加载,无需任何密码,并且可以毫无问题地阅读。
使用 iPDF 加载 - so poppler - 需要密码才能打开文档。
我尝试绕过 Poppler/SecurityHandler.cc 中的 SecurityHandler:checkEncryption 方法,使其返回 true。这有效,但无法加载 pdf,并出现错误:
Error: Unsupported version/revision (4/4) of Standard security handler
Error (13571568): Unknown compression method in flate stream
Error: Top-level pages object is wrong type (null)
Error: Couldn't read page catalog
(PV_E)PDFCore.cpp:61,open() Open PDF document (èÖ@(èÖ@à failed with error code 2
(PV_E)PDFApp.cpp:185,open() Could not open file!
这表明实际的流已加密,如果为真,则表明 okular 正在以某种方式绕过这一点。
我知道有人在其他移动设备上遇到类似的问题(我在 Nexus One 上发现了类似的报告)。
我对 pdf 格式的工作原理了解不够,不知道是否应该使用一些“默认”密码来打开(不需要其他权限)文档。有没有? 当只需要使用用户密码(空白?)即可打开它时,是否会要求所有者密码?
否则,有谁知道像 Okular/XPDF 这样的东西如何能够毫无问题地打开它?
Note: I am not sure if this is better here, or at superuser, but since it concerns the poppler library, I would assume here, because people here are more likely to know how it works.
Software: iPDF 2.12 + Poppler 2.11 (Last commit 2006-12-12) for Irex Iliad. Sources are here.
Problem Documents: Sciam digital PDFs (any of them, since all are produced the same way).
The document will load fine using Okular, Adobe Reader, and XPDF without requesting any passwords, and can be read without problem.
Loading using iPDF - so poppler - requests a password to open the document.
I have tried bypassing the SecurityHandler:checkEncryption method in Poppler/SecurityHandler.cc, by making it return true. This works, but fails to load the pdf with errors:
Error: Unsupported version/revision (4/4) of Standard security handler
Error (13571568): Unknown compression method in flate stream
Error: Top-level pages object is wrong type (null)
Error: Couldn't read page catalog
(PV_E)PDFCore.cpp:61,open() Open PDF document (èÖ@(èÖ@à failed with error code 2
(PV_E)PDFApp.cpp:185,open() Could not open file!
This suggests that the actual stream is encrypted, which - if true - suggests that okular is somehow bypassing this.
I am aware of people having similar problems on other mobile devices (I found a similar report with a Nexus One).
I do not know enough about how the pdf format works to know whether there is some 'default' password that should be used instead to open (no other permissions needed) the document. Is there?
Is it a case that it is requesting the owner password, when it only needs to use the user password (blank?) to open it?
Else, does anyone know how something like Okular/XPDF would be able to open it without problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,这是应用程序使用的 poppler 版本对于所需的安全处理程序来说太旧的问题。
因此,我已经开始了自己的项目,基于以下内容为我的 iliad 创建一个新的 pdf 查看器poppler 的最新(0.14.*)版本可以处理它。来源此处。
This turned out to be an issue with the version of poppler being used by the application being too old for the required security handler.
As such, I have started my own project to create a new pdf viewer for my iliad based on the latest (0.14.*) version of poppler which can handle it. Sources here.