Hi,

I'm using latest 5.5.3 iTextSharp for extracting xml data from Xfa-based
form pdf's. It works pretty well but lately I've came accross some pdfs
that throw following exception when I tried to load them with PdfReader:

iTextSharp.text.exceptions.InvalidPdfException: Object reference not set to
an instance of an object.

   at iTextSharp.text.pdf.PdfReader..ctor(IRandomAccessSource byteSource,
Boolean partialRead, Byte[] ownerPassword, X509Certificate certificate,
ICipherParameters certificateKey, Boolean closeSourceOnConstructorError)


I open them without any password, simply like that:

new PdfReader("path to the file").


I've tracked the exception down a bit and it occures during pdf parsing
in ReadDecryptedDocObj() when decrypting the strings array on line 883 in
PdfReader.cs

I've uploaded the problematic pdf here
https://www.dropbox.com/s/0cv7nwnv88157mm/example.pdf. Could some of you
guys take a look at it and tell if it is a broken pdf or a possible bug in
iText? Thanks in advance!


Regards,


Ondrej
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
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

Reply via email to