title: iTextSharp ShowTextAligned Anchor Point
body: <p>I'm currently successfully adding text to a PDF using iTextSharp's <code>ShowTextAligned</code> method. The method looks like this (C#):</p>
  
  <pre><code>public void ShowTextAligned(
      int alignment,
      string text,
      float x,
      float y,
      float rotation
  )
  </code></pre>
  
  <p>However, it is unclear where the anchor point is for the text we're making. We provide <code>x</code> and <code>y</code>, but does these correspond to the upper left corner of the text rectangle, the lower left corner, or something else? Also is this impacted by line spacing?</p>
  
  <p>I looked at the documentation at this <a href="http://www.afterlogic.com/mailbee-net/docs-itextsharp/Index.html" rel="noreferrer">website</a>, but it isn't very explanatory. See PdfContentByte Class / PdfContentByte Methods / ShowTextAligned Method.</p>