title: Get the exact Stringposition in PDF
body: <p>I tried to read a stream and was hoping to get for each String the exact position (coordinates)  </p>
  
  <pre><code>    int size = reader.getXrefSize();
  
      for (int i = 0; i &lt; size; ++i)
      {
          PdfObject pdfObject = reader.getPdfObject(i);
          if ((pdfObject == null) || !pdfObject.isStream())
              continue;
  
          PdfStream stream = (PdfStream) pdfObject;
          PdfObject obj = stream.get(PdfName.FILTER);
  
          if ((obj != null) &amp;&amp; obj.toString().equals(PdfName.FLATEDECODE.toString()))
          {
              byte[] codedText = PdfReader.getStreamBytesRaw((PRStream) stream);
              byte[] text = PdfReader.FlateDecode(codedText);
              FileOutputStream o = new FileOutputStream(new File("/home..../Text" + i + ".txt"));
              o.write(text);
              o.flush();
              o.close();
          }
  
      }
  </code></pre>
  
  <p>I actually got the position like </p>
  
  <pre><code>......
  BT                  
  70.9 800.9 Td /F1 14 Tf &lt;01&gt; Tj 
  10.1 0 Td &lt;02&gt; Tj               
  9.3 0 Td &lt;03&gt; Tj
  3.9 0 Td &lt;01&gt; Tj
  10.1 0 Td &lt;0405&gt; Tj
  18.7 0 Td &lt;060607&gt; Tj
  21 0 Td &lt;08090A07&gt; Tj
  24.9 0 Td &lt;05&gt; Tj
  10.1 0 Td &lt;0B0C0D&gt; Tj
  28.8 0 Td &lt;0E&gt; Tj
  3.8 0 Td &lt;0F&gt; Tj
  8.6 0 Td &lt;090B1007&gt; Tj
  29.5 0 Td &lt;0B11&gt; Tj
  16.4 0 Td &lt;12&gt; Tj
  7.8 0 Td &lt;1307&gt; Tj
  12.4 0 Td &lt;14&gt; Tj
  7.8 0 Td &lt;07&gt; Tj
  3.9 0 Td &lt;15&gt; Tj
  7.8 0 Td &lt;16&gt; Tj
  7.8 0 Td &lt;07&gt; Tj
  3.9 0 Td &lt;17&gt; Tj
  10.8 0 Td &lt;0D&gt; Tj
  7.8 0 Td &lt;18&gt; Tj
  10.9 0 Td &lt;19&gt; Tj
  ET
  .....
  </code></pre>
  
  <p>But I don't know which string fits to which position 
  On the other hand in Itext I could just get the plain text with </p>
  
  <pre><code>PdfReader reader = new PdfReader(new FileInputStream("/home/....xxx.pdf"));
  PdfTextExtractor extract = new PdfTextExtractor(reader);
  </code></pre>
  
  <p>but of course without any position at all....</p>
  
  <p>So how can I get the exact position for each text(string,char,...) ? </p>