I'm using total = writer.DirectContent.CreateTemplate(10, 15);
in the OnOpenDocument.
When I call it in the onEndPage to show the total page number,
if the actual total page number is 5, it shows as 6.
if the actual total page number is 10, it shows as 11.
etc.
Anyone knows why is that?
--
---------------------------
Michelle Zhang
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/