2013-04-22 57 views
1

我只是试图让一个PDF从另一个像这样的命令行:Ghostscript的错误

gs -sDEVICE=pdfwrite -o new.pdf old.pdf 

而我得到的错误:

GPL Ghostscript 9.07 (2013-02-14)

Copyright (C) 2012 Artifex Software, Inc. All rights reserved.

This software comes with NO WARRANTY: see the file PUBLIC for details.

Error: /undefined in --run--

Operand stack:

--dict:1/1(L)-- Nums

Execution stack:

%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1900 1 3 %oparray_pop 1899 1 3 %oparray_pop 1883 1 3 %oparray_pop --nostringval-- --nostringval-- --nostringval--

Dictionary stack:

--dict:1161/1684(ro)(G)-- --dict:1/20(G)-- --dict:82/200(L)-- --dict:82/200(L)-- --dict:109/127(ro)(G)-- --dict:292/300(ro)(G)-- --dict:25/32(L)--

Current allocation mode is local

GPL Ghostscript 9.07: Unrecoverable error, exit code 1

如果我使用Multivalent.jar来调整这PDF例如它工作正常,并调整它。但GS给出了一个错误。我需要为这种情况使用GS,但是我不会收到这个错误。我可以通过它吗?或者我能做什么?有什么建议么?

+0

第一个建议是尝试将问题分成两半。首先尝试将.pdf映像到显示输出,而不是.pdf。接下来尝试阅读示例.ps文件并输出.pdf。第三次尝试一个不同于你所需要的.pdf。这将测试ghostscript是否安装正确,并且.pdf本身可能是问题。对于其他人的帮助,需要一个示例文件来查看发生了什么问题。 – 2013-04-22 16:22:38

+0

我已经发布我的问题[http://bugs.ghostscript.com/show_bug.cgi?id=693929](http://bugs.ghostscript.com/show_bug.cgi?id=693929)并得到了答案那是它的一个GS bug。所以我只是将我的GS版本降级到9.06,这个问题已经消失了 – 2013-04-23 09:52:44

回答

相关问题