title: Java iText  Image position
body: <p>I have:</p>
  
  <pre><code>   Image i = Image.getInstance("tabelka.png");
          i.scalePercent(25, 25);
      for(int i=0; i&lt;= 5; i++)
      {
          doc.add(i);
  
          content.moveTo(50, ??);////// &lt;-------------- HOW TO CHECK THE Y POSITION
          content.showText("skowron-line");
      }
  </code></pre>
  
  <p>I want to set text on upper right corner of image. How do I do that?</p>
  
  <p>EIDT:
  After hours of thinkin i found dirty solution:</p>
  
  <pre><code>Image img = Image.getInstance("tabelka.png");
  img.scalePercent(25, 25);
  float start = x;
  for(int i =1; i&lt;= 5; i++)
  {
    start = (x - (img.getHeight() * 0.25f) * i);
  }
  </code></pre>
  
  <p>If U know better solution let me know.</p>