my guess is that the PDF is corrupted, and that Acrobat repairs it before displaying it to you. The line of code that is throwing the NPE is one that assumes that the Catalog of the file will exist. This is a pretty fundamental thing - a PDF without a catalog isn't much of a PDF at all.
To check this, open the PDF in wordpad (or some other editor that honors CR/LF properly - not notepad), then scroll all the way to the bottom. You should see something kind of like this (if you don't, open another PDF the same way and convince yourself that it *should* be there): trailer <</Root 198 0 R/ID [<0aa6b4bc9a135852e2787c7dc71f9878><4cfe15987b35b46658192efd0f773679>]/Info 199 0 R/Size 200>> startxref 695905 %%EOF my guess is that the trailer is missing from your file. -- View this message in context: http://itext-general.2136553.n4.nabble.com/Bug-in-pdfReader-tp3932966p3933089.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ 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
