ImageMagick,委托失败
我正在尝试使用 ImageMagick 将一堆 PDF 转换为 JPG(或 PNG),但此错误不断发生。
convert E/paginas/pdf/E2.pdf E/paginas/pdf/E2.png
convert: no decode delegate for this image format `/tmp/magick-qX48YuZM-00000001' @ error/constitute.c/ReadImage/532.
convert: Postscript delegate failed `E/paginas/pdf/E2.pdf': @ error/pdf.c/ReadPDFImage/663.
convert: missing an image filename `E/paginas/pdf/E2.png' @ error/convert.c/ConvertImageCommand/3015.
与 .jpg 相同
PS:我使用的是 Ubuntu 10.10
I'm trying to use ImageMagick to convert a bunch of PDF into JPG (or PNG) but this error keep happenings.
convert E/paginas/pdf/E2.pdf E/paginas/pdf/E2.png
convert: no decode delegate for this image format `/tmp/magick-qX48YuZM-00000001' @ error/constitute.c/ReadImage/532.
convert: Postscript delegate failed `E/paginas/pdf/E2.pdf': @ error/pdf.c/ReadPDFImage/663.
convert: missing an image filename `E/paginas/pdf/E2.png' @ error/convert.c/ConvertImageCommand/3015.
Same to .jpg
PS: I'm at Ubuntu 10.10
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ImageMagick 6.6.0-4 刚刚成功将 PDF-1.4 文件转换为 .png 格式。您使用的 PDF 是什么版本,convert 是什么版本?
您可以使用以下命令确定 PDF 版本:
head -c 8 myfile.pdf
ImageMagick 版本:
convert --version
您可以使用 apt 来诊断问题-get source imagemagick,并使用错误消息中的源行号来定位问题,并可能修复程序以识别 PDF,即使您必须告诉程序忽略某些部分。
ImageMagick 6.6.0-4 just successfully converted a PDF-1.4 file to .png format. What version are the PDFs you're using, and what version of convert?
You determine the PDF version with:
head -c 8 myfile.pdf
The ImageMagick version:
convert --version
What you can do to diagnose the problem is to
apt-get source imagemagick
, and use the source line numbers in the error messages to locate the problem, and possibly fix the program to recognize the PDF, even if you have to tell the program to ignore certain sections.