将pdf转换为jpg文件时出现错误消息

时间:2018-07-10 19:28:53

标签: imagemagick imagick imagemagick-convert

我正在尝试将PDF文件转换为jpg文件,这就是我正在做的以及相关的错误消息。这种错误的原因是什么?

magick convert -density 600 C:\Users\Desktop\temp.pdf C:\Users\Desktop\temp.jpg
convert: FailedToExecuteCommand `"gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r600x600"  "-sOutputFile=C:/Users/ugwz/AppData/Local/Temp/magick-36562c7WhZLZFMM6%d" "-fC:/Users/ugwz/AppData/Local/Temp/magick-3656VktS46lP2HwZ" "-fC:/Users/ugwz/AppData/Local/Temp/magick-3656xOHiogtkf3t5"' (The system cannot find the file specified.
) @ error/delegate.c/ExternalDelegateCommand/459.
convert: PDFDelegateFailed `The system cannot find the file specified.
' @ error/pdf.c/ReadPDFImage/796.
convert: no images defined `C:\Users\Desktop\temp.jpg' @ error/convert.c/ConvertImageCommand/3275.

要验证原始文件位置是否存在,这是输出

C:\Users\Desktop>dir temp.pdf
 Volume in drive C is Global Information Link
 Volume Serial Number is 6646-37D4

 Directory of C:\Users\Desktop

07/10/2018  01:55 PM           175,108 temp.pdf
               1 File(s)        175,108 bytes
               0 Dir(s)  12,942,802,944 bytes free

0 个答案:

没有答案