How to convert a pdf file into an image file

Firstly you have to install Image Magick and then you can use the command convert like this:

convert filename.ext newfilename.newext

In this way you can convert from pdf to jpg and viceversa

If the source pdf file has multiple pages you can do like so:

convert filename.pdf image_%04d.jpg

%d: decimal format

0: add zeros

4: total number of figures

%04d then results in a file of this kind:

image_0001.jpg