I am currently using version 5.06 of iText.  Is this an old version?  Where
can I get the new version?

I have added the restoreState() method call in my code but I still get the
same error when opening the resultant pdf in Adobe Reader.

                .....
                PdfGState gstate = new PdfGState();
                gstate.setFillOpacity(0.3f);
                gstate.setStrokeOpacity(0.3f);
                PdfContentByte pdfContent = stamper.getOverContent(1);
                pdfContent.saveState();
                pdfContent.setGState(gstate);
                pdfContent.addImage(image);
                pdfContent.restoreState();

                stamper.close();
                .....

I don't know if this is valid or not.  By the way, I have ordered the book.


--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Image-added-to-PdfStamper-gives-Error-exists-on-this-page-tp3498739p3499042.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to