我正在尝试使用包含图像的 Ghostscript 9.05 处理 PDF。原始 PDF 在 Adobe Acrobat Reader 9 以及 Ubuntu 的内置文档查看器中显示良好。
通过 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自动更正或修复这些问题?