help with pdf convert

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
Sapphire

help with pdf convert

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: help with pdf convert

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/
Sapphire

Re: help with pdf convert

Post by Sapphire »

thanks fmw42

problem solved
1. i install image magick and ghost script
2. i install "KnowledgeTree" ( it install apache php mysql and etc )
3. "KnowledgeTree" change path to imagick config
4. i reboot
5. convert *.pdf - failed!!!
6. regedit
7. delete wrong path to imagick config
8. It works perfectly.


Thanks!!!
Post Reply