我只是試圖讓一個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,但是我不會收到這個錯誤。我可以通過它嗎?或者我能做什麼?有什麼建議麼?
第一個建議是嘗試將問題分成兩半。首先嚐試將.pdf映像到顯示輸出,而不是.pdf。接下來嘗試閱讀示例.ps文件並輸出.pdf。第三次嘗試一個不同於你所需要的.pdf。這將測試ghostscript是否安裝正確,並且.pdf本身可能是問題。對於其他人的幫助,需要一個示例文件來查看發生了什麼問題。 – 2013-04-22 16:22:38
我已經發布我的問題[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