Remove Footer from PDF using IText5.0
问题 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) /