You have a bug in your code that causes unbalanced save/restore operators. For each save you must have a restore. 2.1.7 now catches this bugs.
Paulo ----- Original Message ----- From: "Michael Caletka" <[email protected]> To: <[email protected]> Sent: Tuesday, November 10, 2009 12:49 PM Subject: [iText-questions] Switch from 2.1.5 to 2.1.7 = "Unbalancedsave/restore state operators" Hi, Today I changed my iText version from 2.1.5 to 2.1.7 and suddenly the former working code is always getting this error. The document creation is as follows: document.open(); cb = writer.getDirectContent(); .... cb.safeState(); document.close(); Works fine wirh 2.1.5, no fun anymore with 2.1.7. Why? ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ 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 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/
