当我尝试将 PDF 转换为图像时,出现了此错误。此后,我使用屏幕截图工具将 PDF 转换为图像,但我担心,当我与提供源 PDF 的人进一步合作时,我会更频繁地看到此错误。我想知道是否有办法防止这种情况发生。
lol:~/public_html/images/Poster$ convert Gordon\ conference\ \ water\ 2018\ 36x48.pdf GCW2018.png
**** Warning: considering '0000000000 XXXXX n' as a free entry.
**** Warning: considering '0000000000 XXXXX n' as a free entry.
**** Warning: considering '0000000000 XXXXX n' as a free entry.
**** Warning: considering '0000000000 XXXXX n' as a free entry.
**** Warning: considering '0000000000 XXXXX n' as a free entry.
**** Warning: considering '0000000000 XXXXX n' as a free entry.
**** Warning: considering '0000000000 XXXXX n' as a free entry.
**** This file had errors that were repaired or ignored.
**** The file was produced by:
**** >>>> Mac OS X 10.12.6 Quartz PDFContext <<<<
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.
是的,源 pdf 来自 Mac。
答案1
这是一个问题苹果操作系统塞拉错误地对 PDF 文件进行编码,导致 GhostScript(使用convert
后台进行转换)抛出这样的错误。
你可以尝试使用,pdftoppm
根据我的经验,它也能创建质量更好的 png
安装:sudo apt-get install poppler-utils
用法:pdftoppm input.pdf outputname -png