Ghostscript没有创建输出PDF文件

时间:2016-01-22 15:44:41

标签: pdf ghostscript

我在使用Ghostscript编写输出PDF文件时遇到问题。它在批处理脚本中运行。如果未以批处理模式运行(没有-o-dBATCH),结果页面将显示在输出窗口中。

但是,我无法让Ghostscript将结果写入PDF输出文件。

这是调用gs:

的行
gs -o out.pdf 
   -sDevice=pdfwrite
   -dColorImageResolution=30 
   -dGrayImageResolution=30
   -dMonoImageResolution=30
   -dCompressFonts=true
   test.pdf

文件在那里:

user:~/test> ll
-rw-r--r-- 1 user users 212033 22. Jan 15:27 test.pdf

在GhostView的输出中,没有任何帮助:

Processing pages 1 through 577.
Page 1
Loading ... font from ... done.
Page 2
Page 3
Page ...

如果有人能指出我为了让Ghostscript将结果实际写入指定文件而忘记的内容,那将非常有用。

0 个答案:

没有答案