Lifo:I’m using Pdf.Generator to build a PDF document.
Lifo:Within one section, I need to add a “Continued on next page” footer. So, needs to be on every page in the section except the last.
Document pdfDocument = new Document(dataDir + “SampleForFooter.pdf”);
HeaderFooter footer = new HeaderFooter();
TextFragment text = new TextFragment("Continued on next page...");
text.TextState.HorizontalAlignment = HorizontalAlignment.Right;
for(int i = 1; i< pdfDocument.Pages.Count; i++)
pdfDocument.Pages[i].Footer = footer;
pdfDocument.Save(dataDir + "SampleForFooter_out.pdf");
Moreover you may also check "Manage Header and Footer in a PDF file" section in our API documentation. In case if you need any further assistance please feel free to let us know.
This is helpful, however, I need to add it within a section. Not to the entire document. Is there any way to do that?
I am unclear on how to use the DOM model to build a document from scratch.