php FPDF 错误:此文档 (mine.pdf) 可能使用了 FPDI 附带的免费解析器不支持的压缩技术
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5441107/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
FPDF error: This document (mine.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI
提问by Helloe
How to settle down the problem?
如何解决问题?
回答by renevdkooi
When making your template, export it using the "PDF-A - 1a" export setting. (In Acrobat Pro you may SAVE AS with this setting)
制作模板时,使用“PDF-A - 1a”导出设置将其导出。(在 Acrobat Pro 中,您可以使用此设置另存为)
More details: (MAC OSX but shoudl work for WIN as well) Open your pdf in acrobat pro. Save as -> MORE OPTIONS -> PDF/A in the popup screen, press settings
更多详细信息:(MAC OSX 但也适用于 WIN)在 acrobat pro 中打开您的 pdf。另存为 -> 更多选项 -> PDF/A 在弹出屏幕中,按设置
In this screen make sure the option "CREATE PDF/A-1a according to the profile bla bla" and select CONVERT TO PDF/A-1a (sRGB) printing conditions: sRGB apply corrections = checked
在此屏幕中,确保选项“根据配置文件 bla bla 创建 PDF/A-1a”并选择转换为 PDF/A-1a (sRGB) 打印条件:sRGB 应用更正 = 选中
now save and finish.
现在保存并完成。
回答by Robert Hyatt
I ran into this exact same problem recently. I was able to solve the problem using this gentleman's PDF parser, which replaces the free one in FPDI. Granted, you will be paying 100 Euros for it, but if you need to have your software work for PDFs that use later compression algorithms, this is probably the best way to go:
我最近遇到了这个完全相同的问题。我能够使用这位绅士的 PDF 解析器解决这个问题,它取代了 FPDI 中的免费解析器。当然,您将为此支付 100 欧元,但如果您需要让您的软件为使用后期压缩算法的 PDF 工作,这可能是最好的方法:
http://www.setasign.de/products/pdf-php-solutions/fpdi-pdf-parser/
http://www.setasign.de/products/pdf-php-solutions/fpdi-pdf-parser/
I have used it, and it works perfectly.
我已经使用过它,而且效果很好。