How to find pdf is portrait or landscape using PDFBOX Library in Java
<p>I am doing project in <strong>Java</strong> using <strong>PDFBOX-1.8.6</strong> library (its compulsory to use).
My Question is</p>

<ol>
<li>How can I check input pdf file have portrait or landscape orientation ?</li>
<li>How to check/scan portrait or landscape orientation in PDF by its dimensions of each page if both are same? For example, both are in standard A4 size.
You will be more clear by below picture.
<a href="http://i.stack.imgur.com/V5b6e.png" rel="noreferrer">my Landscape - Portrait problem</a>
I just want to check its content is rotated or not. So How can I cope up with above problem ?</li>
</ol>