Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] PdfPTable and getPageNumber()

Dominic Maricic

2005-06-05

Replies:

I’ve seen this question asked before, but it wasn’t answered. I am adding a multiple PdfPTable’s on each page. Inside the table the first cell calls getPageNumber() so that I can display something like 3.4, next table would have 3.5, etc where the 3 is the page number. The problem is that if the last PdfPTable on the page gets bumped to the next page then it will still have a 3 instead of a 4. This is obviously occurring because getPageNumber() was called before the table got bumped to the next page. I tried to create my own PageEvent but couldn’t get that to work either. Any suggestions on how I could get this to work? Thanks!

©2008 junlu.com - Jax Systems, LLC, U.S.A.