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 Port