I am trying to switch packages from com.lowagie.text.* to
com.itextpdf.text.* and form com.lowagie.text.pdf.* to
com.itextpdf.text.pdf.*. Generating a PDF document worked with the old
packages. With the new packages I get this error:
com.itextpdf.text.exceptions.IllegalPdfSyntaxException: Unbalanced
save/restore state operators.
at
com.itextpdf.text.pdf.PdfContentByte.sanityCheck(PdfContentByte.java:317
1)
at
com.itextpdf.text.pdf.PdfContentByte.reset(PdfContentByte.java:1289)
at
com.itextpdf.text.pdf.PdfContentByte.reset(PdfContentByte.java:1278)
at
com.itextpdf.text.pdf.PdfWriter.resetContent(PdfWriter.java:735)
at
com.itextpdf.text.pdf.PdfDocument.initPage(PdfDocument.java:1052)
at
com.itextpdf.text.pdf.PdfDocument.newPage(PdfDocument.java:916)
at com.itextpdf.text.pdf.PdfDocument.close(PdfDocument.java:763)
at com.itextpdf.text.Document.close(Document.java:409)
Any suggestions as to where to look for bad code?
-------------------
Eli Segev
781-370-6096
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
iText-questions mailing list
[email protected]
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/