Using „convert“ from „imagemagick“ to convert a PDF to Image.
Example:
convert -geometry 1024x768 -density 200 -colorspace RGB input.pdf output.jpg
Or use a other geometry, quality and no color:
convert -geometry 2048x1536 -density 400 -colorspace gray input.pdf output.jpg