slon wrote: > I need to use PdfTemplate in recursive function and sometimes to "clear" this > template. > But by calling "reset()" it throws "Unbalanced save/restore state operators" > Exception. > In Javadoc by lowagie written: "public void reset() - Makes this > PdfContentByte empty.". > how can i make it empty whithout this exception? may be somebody can help > me?=)
Do you have unbalanced save/restore state operators? If so, balancing them should do the trick. By the way: you can recognize those operators in your code by looking for saveState() and restoreState(). It's not a good idea to make the PdfContentByte empty, and then later on do a restoreState() without a preceding saveState(). -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
