I need to be able to add this code ... I want to modify to this code to add/edit/remove headers and footers from the PDF.
public void onEndPage(PdfWriter writer, Document document)
{
PdfContentByte cb = writer.getDirectContent();
if (document.getPageNumber() > 1)
{
ColumnText.showTextAligned(cb, Element.ALIGN_CENTER, header, (document.right() - document
.left())
/ 2 + document.leftMargin(), document.top() + 10, 0);
}
footer.writeSelectedRows(0, -1, (document.right() - document.left() - 300) / 2
+ document.leftMargin(), document.bottom() - 10, cb);
}
Any suggestion please?
iText Pdf Header Removal for particular page
This link shows how to use HeaderFooter Class. Please share Itext2.X.jar file