Imagemagick将PDF转换为JPEG:FailedToExecuteCommand`" gswin32c.exe" / PDFDelegateFailed [英] Imagemagick Convert PDF to JPEG: FailedToExecuteCommand `"gswin32c.exe" / PDFDelegateFailed

查看:4178
本文介绍了Imagemagick将PDF转换为JPEG:FailedToExecuteCommand`" gswin32c.exe" / PDFDelegateFailed的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有需要转换为图片的PDF。我已经安装了Imagemagick。我有一个名为a.pdf的PDF,我可以在文件夹C中打开它(它没有损坏):\ Convert \

I have PDFs that I need to convert to images. I have installed Imagemagick. I have a PDF named a.pdf that I can open (it is not corrupt) in the folder C:\Convert\

从命令行我正在尝试

C:\Convert>convert a.pdf a.jpg

我收到错误。

convert.exe: FailedToExecuteCommand `"gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -
dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEV
ICE=pamcmyk32" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -dUseCIEColor
"-sOutputFile=C:/Users/MNALDO~1.COR/AppData/Local/Temp/magick-3704HYGOqqIK5rhI%d
" "-fC:/Users//MNALDO~1.COR/AppData/Local/Temp/magick-3704vK6aHo7Ju9WO" "-fC:/Use
rs//MNALDO~1.COR/AppData/Local/Temp/magick-3704GQSF9kK8WAw6"' (The system cannot
find the file specified.
) @ error/delegate.c/ExternalDelegateCommand/480.
convert.exe: PDFDelegateFailed `The system cannot find the file specified.
' @ error/pdf.c/ReadPDFImage/797.
convert.exe: no images defined `a.jpg' @ error/convert.c/ConvertImageCommand/323
0.


推荐答案

您需要安装 Ghostscript 才能使用ImageMagick栅格化矢量文件(PDF,EPS,PS等)。在进行这些操作时,IM会向Ghostscript发出声明(如果在IM调用中使用 -verbose 标记,则可以看到它)。您也可以单独使用Ghostscript来栅格化矢量文件。

You need to install Ghostscript in order to rasterize vector files (PDF, EPS, PS, etc.) with ImageMagick. IM will shell out to Ghostscript when doing these manipulations (you can see it if you use the -verbose tag in your IM invocation). You could also use Ghostscript by itself to rasterize vector files.

这篇关于Imagemagick将PDF转换为JPEG:FailedToExecuteCommand`" gswin32c.exe" / PDFDelegateFailed的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆