【问题标题】:graphicsmagick/ghostscript PDF to PNG conversion: Error reading a content stream. The page may be incompletegraphicsmagick/ghostscript PDF 到 PNG 的转换:读取内容流时出错。页面可能不完整
【发布时间】:2014-06-13 16:36:51
【问题描述】:

我已经成功地使用“gm convert”将许多 PDF 转换为 PNG,但最近我遇到了一个问题,PDF 出现了这个错误:

   **** Unknown operator: '0.0000-11728996', processed as number, value: 0.0
   **** Unknown operator: '0.0000-11728996', processed as number, value: 0.0

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

我查看了interwebz,发现它很可能与ghostscript 有关。有人可以告诉我我的 PDF 是否有错误,或者它是否是 ghostscript 中的错误?

这是 PDF:https://docs.google.com/file/d/0BycjEbtUqUfNT2M0bHkteHl0NDA/edit?pli=1

提前感谢帮助!

爱德华

【问题讨论】:

    标签: imagemagick ghostscript graphicsmagick


    【解决方案1】:

    对于每一页,Ghostscript 9.14 说:

       **** Warning: replacing malformed number '0.0000-11728996' with 0.
       **** Warning: replacing malformed number '0.0000-11728996' with 0.
    

    警告说明了一切。数字格式不正确。

    【讨论】:

    • FWIW 第一个有问题的对象是对象 341,它是一个着色字典,坐标是 4 个数字的数组,条目不是有效数字。 (您可以通过使用良好的文本编辑器打开文件并搜索 0.0000-11 来验证这一点)。所以是的,您的 PDF 文件有错误。我想,让它不想拥有的应用程序并不是一个好兆头:-) 我们以前见过这种格式错误的 PDF 文件,但我不记得产生它们的应用程序了。跨度>
    • 感谢大家的回复。 PDF 来自 Google Drive 演示文稿中的“导出为 PDF”。我猜谷歌的人还有一些问题需要解决。 :)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-10-27
    • 2016-11-05
    • 1970-01-01
    • 2016-02-25
    • 2013-12-27
    • 2016-03-11
    • 2017-06-02
    相关资源
    最近更新 更多