wpdft is a Windows command line tool to automatically find the orientation of image PDFs and rotate them / crop them down.  Its intended use is batch processing.