Tom Hall wrote:
> After upgrading my iText library from itext-0.92.jar to iText-2.1.7.jar, 
> a java.lang.RuntimeException is thrown

You jumped from a version dating April 2002 to a version
dated July 2009. That's more than 7 years!
Surely you didn't expect everything to work?

> com.lowagie.text.pdf.PdfWriter.getDirectContent(Unknown Source).  The 
> exception message is “The document is not open.”
> Any ideas?

The reason is: "The document is not open." (Surprise!!!)
Insert document.open() before using getDirectContent().
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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/

Reply via email to