【发布时间】:2018-04-07 09:50:43
【问题描述】:
我正在使用 Ghost4j 渲染 PDF,但在尝试渲染由 MS Word 创建的文档时,有时会引发以下错误
[main] ERROR org.ghost4j.Ghostscript - GPL Ghostscript 9.18: Some glyphs of the font TimesNewRoman requires a patented True Type interpreter.
根据this thread,这可能是由于 Ubuntu Ghostscript 软件包遗漏了某些字体。所以我从源代码编译了最新的Ghostscript(9.22)并安装了它,现在是我使用gs命令时出现的版本,但Ghost4j似乎仍在使用旧的9.18版本。
如何让它使用新版本的 Ghostscript?
【问题讨论】:
标签: java ghostscript ghost4j