我是新的ghostscript,我无法弄清楚语法。 每当我尝试最简单的命令前-h或 – ? 我得到一个错误,我已经尝试过各种组合。
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
你在里面的postscript解释器和你输入的不是postscript。
你需要在命令行上用-h运行exe(在发行版中有两个二进制文件,一个会正确响应)。
我试过的如下:
我的系统上的Ghostscript安装目录(文件“ gswin32c.exe ”的路径):
C:\ Program Files(x86)\ 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
你去…
帮助指示得到显示,意味着一切都很好,很好!