使用记录的ghostscript语法时,继续在ghostscript中获取错误消息

DaN*_*Net 6 windows ghostscript

我是ghostscript的新手,我无法弄清楚语法.每当我尝试最简单的命令ex -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
Run Code Online (Sandbox Code Playgroud)

Ale*_* K. 7

您在PostScript解释器中,而您输入的内容不是PostScript.

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

  • 你应该可以 gswin32c.exe -h (2认同)

Rah*_*pta 6

我的尝试如下:

我的系统上安装 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

给你....

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