Checks if all the pages in a PDF have a given orientation (portrait, landscape, all the same orientation or the most used orientation).
The orientation is based on the selected page box.