Unfortunately, you didn't take the time to create a small standalone sample that reproduces the exception.
I had to do this in your place (something I usually only do for paying customers), and I wasn't able to reproduce the problem using almost the exact same code snippet you provided. If you run SanityCheck.java, you get a PDF file named sanity.pdf without any exceptions being thrown.
In other words: you're not giving us sufficient info to allow us to help you, which means you won't get any help.
sanity.pdf
Description: Adobe PDF document
SanityCheck.java
Description: Binary data
------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net 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