我将在 HP-UX 系统中使用 Ghostscript 转换 PDF 文件,以便我可以在 LX 和 LQ 打印机中打印这些文件。对于 LX 打印机——例如,我使用以下命令:
gs -q -dBATCH -dSAFER -r120x216 -dNOPAUSE -sDEVICE=eps9high -sPAPERSIZE=letter -sOutputFile=TEST.TEMP.pdf.LXPRINT TEST.pdf
每个 PDF 文件都可以正常工作。但每次我转换包含图像的 PDF 文件时,都会出现如下错误:
Error: /ioerror in --filter--
Operand stack:
--dict:6/15(L)-- false --dict:9/17(L)-- --nostringval-- --nostringval--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1878 1 3 %oparray_pop 1877 1 3 %oparray_pop 1861 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 2 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- 3187 --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue 1749 6 13 %oparray_pop
Dictionary stack:
--dict:1151/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- --dict:108/127(ro)(G)-- --dict:288/300(ro)(G)-- --dict:22/25(L)-- --dict:6/8(L)-- --dict:21/40(L)-- --dict:1/1(ro)(G)-- --dict:1/1(ro)(G)-- --dict:1/1(ro)(G)-- --dict:7/15(L)--
Current allocation mode is local
Last OS error: 2
GNU Ghostscript 0.08.71: Unrecoverable error, exit code 1
如您所见,我使用的是 Ghostscript 8.71.1,我的系统是 HP-UX Itanium v11.23。
我已经安装了所有依赖项——jpeg、libXrender 和所有东西——但没有任何改变。