title: How to extract all properties (Paper Size, Format, Producer) of a PDF using java program
body: <p>I am able to extract PDF properties using java code as below:
  But i am confused how to get [Format like "PDF1.3" and page Size like"A4, Portrait (210 × 297 mm)"] properties using java code.</p>
  
  <pre><code>System.out.println(file.getName());
  PdfReader reader = new PdfReader(file.toString());
  HashMap&lt;String, String&gt; info = reader.getInfo(); 
  char info1=reader.getPdfVersion();
  byte[] b1 = reader.getMetadata();
  System.out.println(info);
  System.out.println(info1);
  </code></pre>
  
  <p>I have tried PDFbox API also, but i cant find the method for the same,
  Is it possible to fetch the following properties using java (i am using ubuntu)</p>
  
  <p>ScreenShot of what i wanted to extract:</p>
  
  <p><img src="https://i.stack.imgur.com/p99u7.png" alt="ScreenShot of what i wanted to extract"></p>