Convert pdf file to jpg or png figure

Post date: Jun 18, 2012 11:40:14 PM

A simple command line is

convert input.pdf output.jpg

and if you care about the resolution and quality, you might want to include some parameters

convert -geometry 1600x1600 -density 200x200 -quality 100 input.pdf output.jpg

which gives pretty decent quality already.

If the pdf file has several pages, there will be multiple input figures, each is a page from the original pdf file. More details can be found at the Ubuntu thread below:

http://ubuntuforums.org/showthread.php?t=993370

and

http://nixnoob.org/?p=68