2012-02-15 14 views
4

我是ghostscript的新手,我无法弄清楚语法。每当我尝试最简单的命令ex -h或 - ?我得到一个错误,我已经尝试过各种组合。当使用记录的ghostscript语法时,不断收到ghostscript中的错误消息

GPL Ghostscript 9.05 (2012-02-08) 
Copyright (C) 2010 Artifex Software, Inc. All rights reserved. 
This software comes with NO WARRANTY: see the file PUBLIC for details. 

GS>-h 
Error: /undefined in -h 
Operand stack: 

Execution stack: 
    %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval- 
- 2 %stopped_push --nostringval-- --nostringval-- %loop_continue --n 
ostringval-- --nostringval-- false 1 %stopped_push .runexec2 --nostr 
ingval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval 
-- 
Dictionary stack: 
    --dict:1166/1684(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)-- 
Current allocation mode is local 
Last OS error: No such file or directory 
Current file position is 3 


GS>gs-h 
Error: /undefined in gs-h 
Operand stack: 

Execution stack: 
    %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval- 
- 2 %stopped_push --nostringval-- --nostringval-- %loop_continue --n 
ostringval-- --nostringval-- false 1 %stopped_push .runexec2 --nostr 
ingval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval 
-- 
Dictionary stack: 
    --dict:1166/1684(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)-- 
Current allocation mode is local 
Current file position is 5 

回答

6

你在里面的postscript解释器和你的输入不是postscript。

您需要使用-h(在发行版中有几个二进制文件,其中一个会正确响应)在命令行上运行exe。

+0

不确定我是否在跟踪,你是指ghostscript安装中的lib文件中的cmd?例如:ps2pdf.cmd -h – DaNet 2012-02-15 16:22:55

+1

你应该可以使用gswin32c.exe -h – 2012-02-15 16:25:40

+0

干杯Alex!你是一个很好的帮助! – DaNet 2012-02-15 16:31:22

1

我试了一下如下:

Ghostscript的安装目录我的系统(文件路径 “gswin32c.exe”)上:

C:\ Program Files文件(86) \ GS \ gs9.10 \ BIN

然后我打开Windows命令提示符(我们的正常的命令提示符窗口),这样做:

C:\> CD C:\ Program Files文件(x86)的\ GS \ gs9.10 \ bin

然后..

C:\ Program Files文件(x86)的\ GS \ gs9.10 \ BIN> gswin32c.exe -h

你去那里....

帮助说明得到显示,意味着一切都很好,很好!