I'm using pdfimages -j bar.pdf /tmp/image
to extract images from a PDF. My objective is to get them in their raw state as they were added. So If it was a .tif I'd like to get a .tif, if it's a jpg I'd like to get a .jpg. I keep getting .ppm for everything I extract.
Is it possible to get images in their original format or is ppm my only opiton?
Update: My primary objective for wanting to do this is to check the DPI of all of the images included in the document, or, check to see if they're vector.