convert PDF to PNG does not work

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
jieleng88

convert PDF to PNG does not work

Post by jieleng88 »

I try to convert pdf to png using command line convet. And get the following errors. Anyone knows what is wrong?

C:\Program Files\ImageMagick-6.5.6-Q16>convert -density 96x96 -trim Monte_Diablo
_001.pdf test.png
convert: `%s': %s "gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -d
NOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 "-sDEVI
CE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r96x96" "-sOutputFile=C:/D
OCUME~1/jleng/LOCALS~1/Temp/magick-KzGTa4jC" "-fC:/DOCUME~1/jleng/LOCALS~1/Temp/
magick-FzssupcE" "-fC:/DOCUME~1/jleng/LOCALS~1/Temp/magick-6Vc2aLDc" @ utility.c
/SystemCommand/1890.
convert: Postscript delegate failed `Monte_Diablo_001.pdf': No such file or dire
ctory @ pdf.c/ReadPDFImage/634.
convert: missing an image filename `test.jpeg' @ convert.c/ConvertImageCommand/2
822.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: convert PDF to PNG does not work

Post by anthony »

You need to install the ghostscript program!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply