cannot convert pdf pages selectively to jpg

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
piopoi
Posts: 3
Joined: 2011-11-03T15:38:52-07:00
Authentication code: 8675308

cannot convert pdf pages selectively to jpg

Post by piopoi »

Hi,
I tried

convert image.pdf[0] image.jpg

and

convert image.pdf'[0]' image.jpg

(and many other syntaxes... :( )

in order to convert the first page only of the file image.pdf
Unfortunately I get the following error:

Magick: unable to open image `image.pdf[0]': No such file or directory @ er
ror/blob.c/OpenBlob/2589.
Magick: no decode delegate for this image format `prova_desc.pdf[0]' @ error/con
stitute.c/ReadImage/532.
Magick: missing an image filename `image.jpg' @ error/convert.c/ConvertImageComm
and/3016.

I am using ImageMagick 6.7.3 on Windows 7 Professional.

I believe this is a bug but, if it isn't, I would appreciate any help to make it work!

Thank you,
piopoi.
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: cannot convert pdf pages selectively to jpg

Post by el_supremo »

Do you have Ghostscript installed? ImageMagick uses GS to convert the PDF.

Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
piopoi
Posts: 3
Joined: 2011-11-03T15:38:52-07:00
Authentication code: 8675308

Re: cannot convert pdf pages selectively to jpg

Post by piopoi »

Yes, I have version 9.02 of Ghostscript installed.

The whole pdf file does get converted when I type this:

convert image.pdf image.jpg


I only have a problem converting a single page.
piopoi
Posts: 3
Joined: 2011-11-03T15:38:52-07:00
Authentication code: 8675308

Re: cannot convert pdf pages selectively to jpg

Post by piopoi »

Solved!

I installed version 6.7.3-3
The version I had was 6.7.3-0

Thanks,
piopoi.
Post Reply