Ghostscript 9.05无法使用pdfwrite将PDF转换为PDF

时间:2018-10-20 21:01:14

标签: ghostscript ghost4j

我正在使用Ghostscript版本Ghostscript 9.05,并使用以下参数将PDF转换为PDF:

gs -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=output.pdf -c .setpdfwrite -f input.pdf

异常跟踪:

Processing pages 1 through 2. Page 1 Error: /nocurrentpoint in --run-- Operand stack: --dict:14/14(L)-- --dict:0/0(ro)(G)-- Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1894 1 3 %oparray_pop 1893 1 3 %oparray_pop 1877 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 2 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- false 1 %stopped_push --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- Dictionary stack: --dict:1155/1684(ro)(G)-- --dict:1/20(G)-- --dict:83/200(L)-- --dict:83/200(L)-- --dict:109/127(ro)(G)-- --dict:291/300(ro)(G)-- --dict:24/31(L)-- --dict:6/8(L)-- --dict:28/40(L)-- Current allocation mode is local Last OS error: 2 GPL Ghostscript 9.05: Unrecoverable error, exit code 1

注意:同一文件在Ghostscript v8.70中运行正常。问题在于通过Acrobat Distiller 18.0 (Windows)

生成的PDF文件

0 个答案:

没有答案
相关问题