converting 1 page of a pdf to jpg

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
time

converting 1 page of a pdf to jpg

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: converting 1 page of a pdf to jpg

Post 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
time

Re: converting 1 page of a pdf to jpg

Post by time »

Thanks!
Post Reply