【发布时间】:2011-04-18 07:49:25
【问题描述】:
我使用的是 Ubuntu 10.10 amd64、Sun JDK 6.0.24 和默认的 ghostscript 包。 现在,我正在尝试让 "Render a PDF document using SimpleRenderer" sample 从 Ghost4J page 工作。
虽然“使用 FontAnalyzer 列出 PDF 文档的字体”示例正在运行,但到目前为止我尝试的所有 PDF 的 SimpleRenderer-sample 都失败,并出现以下错误:
Caused by: net.sf.ghost4j.GhostscriptException: Cannot initialize Ghostscript interpreter. Error code is -20
at net.sf.ghost4j.Ghostscript.initialize(Ghostscript.java:318)
at net.sf.ghost4j.renderer.SimpleRenderer.run(SimpleRenderer.java:84)
... 3 more
有什么建议吗?
【问题讨论】:
-
这很可能来自底层的 Ghostscript 安装被破坏。它是否适用于命令行中的各种实用程序?
-
我也遇到了这种情况。请帮忙!
-
请在描述中添加 Ghostscript 和 Ghost4J 版本。
标签: java ubuntu ghostscript x86-64