Note : The installation instruction below are for Ubuntu however they should work perfectly well on any other distro as long as you have ImageMagik and Ghost Script installed.
ImageMagick is a powerful command line image processing package with a number of features you could install it using the following command :
sudo apt-get install imagemagickAfter installation is over to convert say sample.pdf to sample.png issue the following command
convert sample.pdf sample.png
convert sample.pdf sample.jpg
Now if sample.pdf has multiple pages ImageMagick would convert each individual page into a separate file for example : 1st page as sample-0.png , 2nd page as sample-1.png and so on .
However ImageMagick internally uses Ghostscript to convert the file to graphics image so resolution might be bit less and if you want to convert document into higher resolution image you could do so by using Ghostscript directly.
There are number of options available in convert which you could inquire by issuing convert -? command.
Article Written by : Ambuj Varshney (firstname.lastname@example.org)
For Desktop on Linux Blog , http://linuxondesktop.blogspot.com
(C) 2008 , Ambuj Varshney