Page 1 of 1

converting 1 page of a pdf to jpg

Posted: 2009-10-22T11:44:21-07:00
by time
I have a PDF and want to convert just the first page of the pdf to a jpg.
Is there an option to convert just the first page and not the entire document?

Is there another command line arguement i can add to the following...

Q:\PDFTools\test2\convert -auto-orient Q:\PDFTools\test3\36746513.pdf Q:\PDFTools\test3\36746513.jpg

Re: converting 1 page of a pdf to jpg

Posted: 2009-10-22T12:37:38-07:00
by fmw42
convert image.pdf[0] image.jpg

or for more quality

convert -density 144 image.pdf[0] -resize 50% image.jpg

or

convert -density 288 image.pdf[0] -resize 25% image.jpg

The latter two do supersampling and will be slower.

see http://www.imagemagick.org/Usage/basics/#sequence

Re: converting 1 page of a pdf to jpg

Posted: 2009-10-22T13:50:06-07:00
by time
Thanks!