【问题标题】:Processing a PDF with embedded image using Ghostscript使用 Ghostscript 处理带有嵌入图像的 PDF
【发布时间】:2013-06-21 17:10:27
【问题描述】:

我正在尝试使用 Ghostscript 9.05 处理包含图像的 PDF。原始 PDF 在 Adob​​e Acrobat Reader 9 以及 Ubuntu 的内置 Document Viewer 中显示良好。

通过 Ghostscript 运行文件时,我得到:

   **** Warning: File encountered 'rangecheck' error while processing an image.
Loading NimbusSanL-ReguItal font from /usr/share/fonts/type1/gsfonts/n019023l.pfb... 4342240 2931231 2721360 1395616 3 done.

   **** This file had errors that were repaired or ignored.
   **** The file was produced by: 
   **** >>>> Prawn <<<<
   **** Please notify the author of the software that produced this
   **** file that it does not conform to Adobe's published PDF
   **** specification.

然后从输出 PDF 中删除图像。

我尝试通过使用 Prawn 创建其他带有嵌入图像的 PDF 来重新创建此文件,但无法重现。

有没有办法让 ghostscript 自动更正或修复此类问题?

【问题讨论】:

    标签: pdf ghostscript prawn


    【解决方案1】:

    您可以尝试使用当前版本的 Ghostscript (9.07),它可能会做得更好。如果您无法打开错误报告(您需要附加 PDF 文件以便对其进行调查)。

    【讨论】:

    • 嗨,KenS。感谢您的回复。我也用 9.07 试过这个,同样的问题。我已经上传了图片,以及我用 Prawn 创建的文件。
    • 对于它的价值,即使在 ghostscript 9.14 中仍然会发生这种情况。但是,对于其他输出设备(png16m、tiffg4 等),这不会发生。此外,使用 pdfjoin 也不会发生这种情况。无论如何现在要解决这个问题?
    • 我更新了应该在 01/2014 修复的错误 - bugs.ghostscript.com/show_bug.cgi?id=694371提前感谢您的帮助!
    • 我认为您误读了日期,该错误已在今年(2014 年)6 月 10 日修复。
    • 是的,你是对的。我被重复的票弄糊涂了。
    猜你喜欢
    • 2022-01-19
    • 1970-01-01
    • 2021-02-11
    • 1970-01-01
    • 2014-01-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多