Convert PDF to JPG

Firstly, install ImageMagick on your linux server

yum install ImageMagick

Secondary, run this command:

convert -colorspace RGB file.pdf file.jpg

convert -colorspace RGB -crop 594×841+29+29 -resize 100×141 file.pdf file.jpg