I'm extracting all the images from a bunch of scanned PDFs using pdfimages
, in order to process and repackage them.
The problem is that some images are rotated 90° (either CW or CCW) and others are not. The original PDF re-rotates them on the page, so that all the pages show up straight, but the extracted images remain rotated.
I couldn't find an option in pdfimages
to output the rotations, so that I could use them in a script.
Is there a way to extract this information?