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.
So, I want to know, is there any function in Objective-C that helps me in recognizing the orientation of document while printing.
Note: I am not talking about device orientation but the orientation of the document that has to be printed