我正在尝试使用包含图像的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自动更正或修复这些问题?
答案 0 :(得分:1)
您可以尝试使用当前版本的Ghostscript(9.07),这可能会做得更好。如果你没有打开错误报告(你需要附上PDF文件以便对其进行调查)。