pdf2img is a command line tool that gets raw image files from pdf.