这是endofpage事件代码
public override void OnEndPage(PdfWriter writer, Document document)
{
iTextSharp.text.pdf.draw.LineSeparator line1 = new iTextSharp.text.pdf.draw.LineSeparator(1f, 100f, BaseColor.CYAN, Element.ALIGN_LEFT, 1);
document.Add(new Chunk(line1));
}