As Wiz has said - many browsers support viewing .pdf files out of the box - and others do require some kind of plugin/extension, or even a standalone pdf viewer. So you might not need to convert your pdf to images at all.
However, if you really want/need to - you can easily convert a .pdf to a series of .jpg images.
First up - What type of PDF are you converting?
Is it a pdf that has been exported from an office suite, or some other program - or compiled from a markup language like LaTex?
Or is it a scanned document?
If it's a scanned document - then each page will already exist as a JPG, embedded into the pdf. So it might be easier to use something that can extract images from pdf documents.
I know there are a few tools available in Linux that can do this. I think one of them is called pdfimages. It should be in the repos of most distros.
So if your pdf is a scanned document - you'd probably be better off installing pdfimages and using that to extract all images.
Otherwise, if your PDF is NOT a scanned document - your best bet would be to use imagemagicks "convert" program.
Imagemagick is a suite of powerful terminal-based image manipulation tools and should be in the software repos for your distro.
If you have imagemagick installed - it might be as simple as:
Code:
convert file.pdf file.jpg
That should export each page of the document as a series of jpg images. And if you're lucky - the images will be good to use.
But depending on the quality of the results - you might need to add some extra parameters to the call to convert - e.g. to set or change the colourspace, the size/resolution of the converted images etc.
So, if using convert without parameters results in poor quality images being exported - you can try some of converts many options to try to improve the final .jpgs.
To see the available options - consult the man pages for convert:
Then you can decide which of the options might be able to improve the final result. So it may require a little bit of tinkering to get the exported images exactly as you want them.
Although pdfimages and convert (and the rest of the imagemagick tools) are terminal based, command-line tools. They are all extremely powerful and very useful.
If you have a large number of pdf files to convert - you can easily write a script to use them to batch convert/extract .jpg from .pdf.