Q: Is it possible to auto rotate PDF pages by their orientation in
mixed documents. Or do I have to define that manually for each page
and loop over each page?
-----------
A: You could use "-r 90" to rotate all pages by a certain number of
degrees.
If you need finer, more programmatic control you could use PDFNet SDK
(
http://www.pdftron.com/pdfnet) instead. As a starting point you may
want to take a look at PDFDraw sample project (
http://www.pdftron.com/
pdfnet/samplecode.html#PDFDraw). You could use page.GetPageWidth/Height
() to obtain page dimensions for each page, and page.SetRotation() to
rotate pages.