0
我被告知Ghostscript是缩小PDF文件的最佳工具。我安装了GNU Ghostscript 7.07。我用下面的代码中使用它通过PHP:Ghostscript错误
system("gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4
-dNOPAUSE -dQUIET -dBATCH -dPDFDEBUG -sOutputFile=output.pdf document.pdf");
对于它完美一些文件,但对于一些其他的输出文件无效,或有没有别的白色的页面。是否因为版本?
我得到一个错误信息:
Error:
/syntaxerror in readxref Operand stack: Execution stack: %interp_exit
.runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push
--nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3
%oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop --nostringval-- --nostringval--
--nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1064/1123(ro)(G)-- --dict:0/20(G)-- --dict:93/200(L)-- --dict:93/200(L)--
--dict:97/127(ro)(G)-- --dict:229/230(ro)(G)-- --dict:14/15(L)--
Current allocation mode is local