convert pdf

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Sapphire

convert pdf

Post by Sapphire »

i try convert pdf to jpg ( >convert 1.pdf 1.jpg )

without ghostscript i have error

convert: `%s': %s "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -
dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pnmraw" -dTextAlp
haBits=4 -dGraphicsAlphaBits=4 "-g72x72" "-r" C:/DOCUME~1/EF489~1.POT/LOCALS~1/T
emp/magick-Mj9-0fjK "-sOutputFile=C:/DOCUME~1/EF489~1.POT/LOCALS~1/Temp/magick-0
p_fJUCr" "-fC:/DOCUME~1/EF489~1.POT/LOCALS~1/Temp/magick-V19EKQsM" "-f".
convert: Postscript delegate failed `1.pdf': No such file or directory.
convert: missing an image filename `1.jpg'.

with ghostscript

-r must be followed by <res> or <xres>x<yres>
convert: Postscript delegate failed `1.pdf': No such file or directory.
convert: missing an image filename `1.jpg'.

how can i fix this???
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert pdf

Post by fmw42 »

Sapphire wrote:i try convert pdf to jpg ( >convert 1.pdf 1.jpg )

without ghostscript i have error

convert: `%s': %s "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -
dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pnmraw" -dTextAlp
haBits=4 -dGraphicsAlphaBits=4 "-g72x72" "-r" C:/DOCUME~1/EF489~1.POT/LOCALS~1/T
emp/magick-Mj9-0fjK "-sOutputFile=C:/DOCUME~1/EF489~1.POT/LOCALS~1/Temp/magick-0
p_fJUCr" "-fC:/DOCUME~1/EF489~1.POT/LOCALS~1/Temp/magick-V19EKQsM" "-f".
convert: Postscript delegate failed `1.pdf': No such file or directory.
convert: missing an image filename `1.jpg'.

with ghostscript

-r must be followed by <res> or <xres>x<yres>
convert: Postscript delegate failed `1.pdf': No such file or directory.
convert: missing an image filename `1.jpg'.

how can i fix this???
I am no expert (and don't know about -r), but it looks like you need to install the ghostscript (and possibly jpg) delegate libraries. To see what libraries you have installed, type

convert -list configure

And look for the line something like this:

DELEGATES bzlib fontconfig freetype gs jpeg jp2 lcms lqr openexr png tiff x11 xml zlib


see http://www.imagemagick.org/download/delegates/
Post Reply