这个Ghostscript错误信息是什么意思?

Kit*_*sto 14 ghostscript

我从Ghostscript调用中收到此错误消息:

Error: /syntaxerror in -file-
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--     2   %stopped_push   --nostringval--
  --nostringval--   --nostringval--   false   1   %stopped_push   1926   1   3   %oparray_pop   1925   1   3   %oparray_
pop   1909   1   3   %oparray_pop   1803   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostr
ingval--   --nostringval--   --nostringval--   2   %stopped_push
Dictionary stack:
   --dict:1169/1684(ro)(G)--   --dict:0/20(G)--   --dict:77/200(L)--
Current allocation mode is local
Current file position is 215
GPL Ghostscript 9.05: Unrecoverable error, exit code 1
Run Code Online (Sandbox Code Playgroud)

这是否意味着输入Postscript文件中存在问题,或者它是否意味着我的通话或安装有问题?

电话是:

ps2pdf book.ps book.pdf
Run Code Online (Sandbox Code Playgroud)

输入文件book.ps存在于当前目录中.

是否有Ghostscript错误消息列表以及它们在某处意味着什么?(在这种情况下,谷歌不是我的朋友.)

Ken*_*enS 8

这不是Ghostscript错误消息,它是PostScript错误消息.PostScript错误消息在PostScript语言参考手册中定义.语法错误意味着它所说的内容,PostScript程序包含语法错误.

你可以尝试的事情:

  1. 在PostScript文件上执行Ghostscript来呈现页面,它有效吗?(你没有说你正在起诉什么操作系统但是gs book.ps应该工作的东西)

  2. 尝试直接使用Ghostscript而不是仅仅包装它的ps2pdf脚本.再一次像gs -sDEVICE=pdfwrite -o book.pdf book.ps

其中一个可能有助于通过工作或提供更明确的错误.