Add a method to determine the orientation of a page based on its MediaBox dimensions and the presence of a Rotate property, if any.