I am generating a PDF using PdfGraphics2D.
While testing the generated PDF in Adobe Reader (9.1.0) I noticed that the
Reader displays the document just fine, but freezes on the first mouse click to
the document (I was trying to select text): Full CPU utilization, no redrawing.
Interestingly Foxit Reader can handle the document fine.
After a while I found that the reason was that I forgot to call dispose() on
the Graphics2D object I used for drawing.
So this e-mail is a warning and hopefully a helpful google-search result for
other iText users.
Also, to prevent this kind of mistake:
Would it be possible to issue a warning (on the console) if the document is
closed while there are still undisposed Grpahics2D objects for its content?
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
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