title: Find a given text position in PDF file
body: <p>I have a pdf file and I want to find the position / get the height and width of the text on it. So far I am only able to give the position manually by myself, ideally I want to get this position. Here is my code below:</p>
  <pre><code>PdfReader pdfReader = new PdfReader(&quot;c:/users/qasimovn/desktop/0011E06210410008 __v3.pdf&quot;);
  
  PdfStamper pdfStamper = new PdfStamper(pdfReader,
      new FileOutputStream(&quot;c:/users/qasimovn/desktop/newSened.pdf&quot;));
  
  Image image = mage.getInstance(&quot;c:/users/qasimovn/desktop/imza.jpg&quot;);
  
  for (int i = 1; i &lt;= pdfReader.getNumberOfPages(); i++) {
  
      PdfContentByte content = pdfStamper.getOverContent(i);
      image.setAbsolutePosition(400 f, 50 f);
      content.addImage(image);
  }
  </code></pre>