posted 13 years ago
Hi,
I suppose you're using iText. If so, the PdfWriter.setPageEvent() method takes a listener which receives page events like onEndPage(). Use the helper like this to handle only the events you want to:
Since all my apps which involved PDFs needed page numbers in some particular positions, I used PdfContentByte.setTextMatrix() and PdfContentByte.showText() to achieve absolute positioning.