转换:Postscript委托失败 [英] Convert: Postscript delegate failed
问题描述
我正在尝试将PDF转换为JPEG:
I am trying to convert a PDF to JPEG:
$ convert pdf-test.pdf pdf-test.pdf.jpg
但是,我收到此错误:
convert: Postscript delegate failed `pdf-test.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/664.
convert: missing an image filename `pdf-test.pdf.jpg' @ error/convert.c/ConvertImageCommand/3015.
目前我在Mac OS X Lion上使用此版本的GS和ImageMagick:
Currently I am using this version of GS and ImageMagick on Mac OS X Lion:
$ gs -v
GPL Ghostscript 9.02 (2011-03-30)
Copyright (C) 2010 Artifex Software, Inc. All rights reserved.
$ convert -version
Version: ImageMagick 6.7.1-1 2011-07-21 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP
任何人都可以告诉我这个吗?
Can anybody enlighten me on this?
推荐答案
好吧,它告诉你的不是这样的文件或目录。据推测,您已检查文件是否存在。您是否尝试过使用./pdf-test.pdf或使用完全限定的路径?
Well, its telling you thre is no such file or directory. Presumably you have checked the file exists. Have you tried using ./pdf-test.pdf, or using a fully-qualified path ?
您是否尝试使用GS直接打开文件而不是使用ImageMagick?只是为了检查GS工作正常的事实。 Somthinhg喜欢:
Have you tried opening the file directly with GS rather than using ImageMagick ? Just to check the fact that GS is working properly. Somthinhg like:
gs ./test-pdf.pdf
gs ./test-pdf.pdf
应该在一个窗口中打开PDF文件。
ought to open the PDF file in a window.
这篇关于转换:Postscript委托失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!