i am generating a report in vb.net using itextsharp. sometimes the entire report does not fit on one page and i need to know when itextsharp is adding a page to the document. is there a way to detect this?
i am generating a report in vb.net using itextsharp. sometimes the entire report does
Share
As long as you’re implementing the
PdfPageEventinterface, you just need to override thepublic void onEndPage(PdfWriter writer, Document document)method, which is called right before a new page is started.Edit: here’s some code explaining the procedure, without knowing what you want to do if a new page is created by iTextSharp, this is the most I can give you: