【问题标题】:Is it possible to not render text using the Ghostscript command line?是否可以不使用 Ghostscript 命令行呈现文本?
【发布时间】:2016-08-30 00:58:33
【问题描述】:

我想在 MATLAB 中进行一些图像处理。但是,我的源文件是 PDF,所以我使用 Ghostscript 命令行将它们转换为图像。

gs -dNOPAUSE -dBATCH -sDEVICE=pngalpha -r300 -sOutputFile=test%d.png test.pdf

但是,有一些文本覆盖在我要处理的图像上。是否可以禁用字体渲染?丑陋的变通方法也是可以接受的,比如强制 gs 使用空字体(这样的东西存在吗?)或其他东西。

【问题讨论】:

    标签: image pdf ghostscript


    【解决方案1】:

    如果您使用的是最新版本的 Ghostscript(如果不是,请升级),您可以使用:

    -dFILTERTEXT

    请参阅 Ghostscript 文档:Use.htm => "Other parameters"

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-21
      • 2017-04-12
      • 2018-08-20
      • 1970-01-01
      • 2010-12-19
      • 2022-10-19
      相关资源
      最近更新 更多