protected void InitFooter() { if (footer != null) { // Set the page number. HTML has no notion of a page, so it should always // add up to 1 footer.PageNumber = pageN + 1; Add(footer.Paragraph); } }