如何在 PHP 中将 PDF 版本 1.5 转换为版本 1.4?有人能指出我正确的方向吗?
我有类似的需求,发现Ghostscript可以修改PDF版本。文档在这里:http://ghostscript.com/doc/current/Use.htm http://ghostscript.com/doc/current/Use.htm
但是,我在文档中没有找到有关 dCompatibilityLevel 选项的任何具体信息。相反,我发现这篇文章展示了它的用途:http://rohieb.wordpress.com/2012/06/09/use-ghostscript-to-convert-pdf-files/ http://rohieb.wordpress.com/2012/06/09/use-ghostscript-to-convert-pdf-files/
这是命令:
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH
-sOutputFile=new-pdf1.5.pdf original.pdf
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)