title: Adding a footer in itextsharp c#
body: <p>I'm trying to add a footer to my generated PDF using itextsharp.</p>
  
  <p>The document is created like so:</p>
  
  <pre><code>var document = new Document(PageSize.A4, 50, 50, 25, 25);
  //add text and images
  document.Add(new Paragraph(document.BottomMargin, "footer text"));
  </code></pre>
  
  <p>The problem is that because the text and images only fill about half the page the "footer text" is shown directly under that, and not at the foot of the document. The text and images in the document may change, so the footer needs to relate to the bottom of the doc and not the bottom of the content.</p>
  
  <p>Any help greatly appreciated in how to do this.</p>
  
  <p>Thanks,
  NL</p>