“无法找到外部参照表”与 Dompdf0.6a + FPDI
我正在尝试使用 dompdf0.6a 从 html 生成一个 pdf 文件,并且工作正常,但随后我需要对其进行加密以进行保护,但出现错误
FPDF error: Unable to find xref table - Maybe a Problem with 'auto_detect_line_endings'
但是,如果我使用较旧的 dompdf 版本,则工作正常。我猜它会生成 fpdi 不支持的更新的 pdf 版本。
顺便提一句。我追踪到 FPDI/pdf_parser.php:208 (内部方法 pdf_read_xref())
I'm trying to generate a pdf file from html using dompdf0.6a and that works fine, but then i need to encrypt it for protection, but i get error
FPDF error: Unable to find xref table - Maybe a Problem with 'auto_detect_line_endings'
However if I use older dompdf versions it works fine. I guess it generates newer pdf version that fpdi doesn't support.
btw. I traced it to FPDI/pdf_parser.php:208 (inside method pdf_read_xref())
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我可以通过使用 Adobe Acrobat Professional v8 并转到“文档 -> 减少文件大小”,然后选择一些非常旧的内容(例如“Acrobat 5.0 或更高版本”)来解决此问题,然后错误就得到了修复!
I was able to fix this by using Adobe Acrobat Professional v8 and going to "Document -> Reduce File Size" and then choosing something really old like "Acrobat 5.0 or Later", then the error was fixed!
DOMPDF 的最新开发版本可能会解决此问题。然而,这是一个非官方版本,因此支持有限。如需了解详情,请参阅 DOMPDF 支持小组。
The latest development version of DOMPDF might fix this problem. This is an unofficial release, however, so support is limited. See the DOMPDF support group for more information.
我现在刚刚遇到这个错误。我不确定它是否适用于这种情况,但问题与托管有关。
我已经超出了 FTP 配额。我将 FTP 配额更改为更高的值并修复了错误。
(在 Parallels Plesk Panel 中,FTP->FTP 管理器->配额-在无限文件中使用了 xxxx MB -> 单击按钮-> 输入新磁盘配额)
I just had this error right now. I'm not sure if it applies to this case, but the problem was related to the hosting.
I had exceeded the FTP quota. I changed the FTP quota to a higher value and that fixed the error.
(In Parallels Plesk Panel, FTP->FTP Manager->Quota- xxxx MB used out of xxxx in unlimited files -> Click on the button-> Enter New Disk Quota)