convert pdf to image

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
vasiliy_b
Posts: 4
Joined: 2016-10-06T23:59:46-07:00
Authentication code: 1151

convert pdf to image

Post by vasiliy_b »

Hi! I`m trying convert pdf file to image.
I use command:

Code: Select all

>convert my.pdf output.png

or

Code: Select all

>convert -density 300 my.pdf output.png


but i see error and nothing do more
convert.exe: FailedToExecuteCommand `"gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" "-sOutputFile=C:/Users/VF5D7~1.ZAY/AppData/Local/Temp/magick-5244fFRY7U7fJUDR%d" "-fC:/Users/VF5D7~1.ZAY/AppData/Local/Temp/magick-5244oFg3CkHXxDmz" "-fC:/Users/VF5D7~1.ZAY/AppData/Local/Temp/magick-5244Xx2GXrAvghqw"' (Не удается найти указанный файл.) @ error/delegate.c/ExternalDelegateCommand/480.convert.exe: PDFDelegateFailed `Не удается найти указанный файл.' @ error/pdf.c/ReadPDFImage/797.convert.exe: no images defined `output.png' @ error/convert.c/ConvertImageCommand/3230.
OS: Window 7 64x
ImageMagick version ImageMagick-6.9.2-3-Q8-x64-dll
and update to ImageMagick-7.0.3-2-Q16-x64-dll

sorry by my english is easy
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: convert pdf to image

Post by dlemstra »

Did you install Ghostscript? This is required to convert a PDF to a PNG. Be aware that you will need a license if you want to use it commercially.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
vasiliy_b
Posts: 4
Joined: 2016-10-06T23:59:46-07:00
Authentication code: 1151

Re: convert pdf to image

Post by vasiliy_b »

thanks, installing ghostscript helped. Apparently I missed something, what she will need.
Post Reply