I dont know if what I am trying to do is even possible, and it might be too much work for something very insignificant. I have a servlet that creates a PDF. I am using iText to write to the created pdf, in my pdf I have a dynamic table that can change the size of the document. I would like to print “Continued on next page” at the bottom of the document whenever it needs to go to the next page. The problem is I will never know where the page break occurs in my document.
I am more than happy to add code to this, if this is possible. Also, if this isnt clear, feel free to ask questions, thanks.
EDIT: Probably talking to myself, but The only way that I think this is possible is if there is a method that realizes that a new page has just been created.
You can try to apply this snippet in your pdf generator class:
FYI, there are bunch of iText examples, in your case search for footer. Hope this helps.