4

I'm trying to add a footer to my generated PDF using itextsharp.

The document is created like so:

var document = new Document(PageSize.A4, 50, 50, 25, 25);
//add text and images
document.Add(new Paragraph(document.BottomMargin, "footer text"));

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.

Any help greatly appreciated in how to do this.

Thanks, NL

Oded
  • 489,969
  • 99
  • 883
  • 1,009
nedlogan
  • 125
  • 1
  • 1
  • 8

0 Answers0