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

问题描述 投票:6回答:2

我是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
windows ghostscript
2个回答
6
投票

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

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


3
投票

我尝试的内容如下:

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

你去....

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

© www.soinside.com 2019 - 2024. All rights reserved.