In daily work, we often encounter PDF documents with incorrectly oriented pages: scanned pages might be skewed, automatically generated reports may have some pages upside down, or merged documents ...