title: Identify keys and value pairs of a PDF Document using iText
body: <p>I need to read a pdf document and populate values into a database table, it's fields are in the following format :</p>
  
  <pre><code>&gt; Service Request              ID 00562464 APAG Notes                  
  &gt; 8/18/17 Contingent           Approval by 10/2/17
  </code></pre>
  
  <p>Where Service Request &amp; APA Notes are the keys and ID 00562464 &amp; 8/18/17 Contingent Approval by 10/2/17 are the values. When I read this PDF through iText PdfTextExtractor method I get the values as follows:</p>
  
  <pre><code>Service Request ID 00562464
  APAG Notes 8/18/17 Contingent Approval by 10/2/17
  </code></pre>
  
  <p>Hence i cannot identify the keys and values seperately to populate the columns of the table. I am using the iText Java library.</p>
  
  <p>Below is the code I have used to get the above output.</p>
  
  <pre><code> PdfReader reader = new PdfReader(path);
   String textFromPage = PdfTextExtractor.getTextFromPage(reader, 1);
   System.out.println(textFromPage);
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/1b4Lz.jpg" alt=""></p>