title: How to check whether a page in PDF is A4 or not
body: <p>I am creating a small application in which I open a existing PDF and then check whether the individual pages are in A4 or not. If pages are not in A4 then convert them to A4. </p>
  
  <p>I am facing two problems now:</p>
  
  <ol>
  <li>How to check whether the page in PDF is in A4 or not?</li>
  <li>During the conversion of a non-A4 page to A4, the text outside the A4 page frame is omitted. Therefore it cause some loss of content.</li>
  </ol>
  
  <p>How can I get around these two issues?</p>