title: How to recognize the orientation of document(.pdf,.doc,.png) in objective C
body: <p>I was going through our codebase and identified that we are not checking the orientation of documents during printing. It is automatically taking default orientation as Portrait, even when I am passing the landscape document.</p>
  <p>So, I want to know, is there any function in Objective-C that helps me in recognizing the orientation of document while printing.</p>
  <p><strong>Note: I am not talking about device orientation but the orientation of the document that has to be printed</strong></p>