Page 1 of 1

cannot convert pdf pages selectively to jpg

Posted: 2011-11-03T15:52:40-07:00
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.

Re: cannot convert pdf pages selectively to jpg

Posted: 2011-11-03T16:22:51-07:00
by el_supremo
Do you have Ghostscript installed? ImageMagick uses GS to convert the PDF.

Pete

Re: cannot convert pdf pages selectively to jpg

Posted: 2011-11-03T19:06:05-07:00
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.

Re: cannot convert pdf pages selectively to jpg

Posted: 2011-11-04T09:59:21-07:00
by piopoi
Solved!

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

Thanks,
piopoi.