Change the page number with Document.setPageCount() and read the page number with PdfWriter.getPageNumber().
Best Regards, Paulo Soares ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, July 27, 2002 7:37 Subject: [iText-questions] reset page count > > Hi, > > Can anyone tell me how to make getPageNumber() return 0? I tried using > resetPageCount(), even setPageCount(0) but I can't seem to get them to > work. In my PageEvents class, I retrieve the pagenumber in the onEndPage > method. What I want to happen is that in the middle of the document, I > can > reset the page count so that it starts from 1 again without having to > close > the document and open a new one. > > Thanks, > Sandee > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
