This question already has an answer here:
I have a pdf file that consists of an image per page.
Are there any command line programs that can extract these images?
If it's just image per page, you can just rasterize the pdf, for instance, with imagemagicks'
However, this doesn't get the original raw image out, for that, you need something else - waiting for a better answer.