------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
I am trying to produce "Page x of y" footers to a PDF i'm producing
with iText but am having a problem. I've extended the
PdfPageEventHelper class and implemented onOpenDocument, onEndPage, and
onCloseDocument. The problem is in onEndPage when I'm trying to get
the current page number with writer.getPageNumber() it always returns
0. So I set a breakpoint there and inspected the PdfWriter object.
The protected field of currentPageNumber is correct at that break (1,
2, 3, etc... ), but for some reason if I call getPageNumber() to
retrieve that field it is 0. What exactly does getPageNumber() return?
I guess it isn't as simple as "return currentPageNumber;" What might
be causing this?
- [iText-questions] Trouble with page events Matt Kowske
- RE: [iText-questions] Trouble with page events Paulo Soares
