Re: [iText-questions] possible bug in PdfReader while decrypting Pdf content

2014-11-24 Thread smothy
Hi Michael, thanks for analyzing this. I was expecting the pdf to be somehow broken. Unfortunatelly there is nothing I can do with the source pdf's. Anyway, expanding the condition in StandardDecryption.Finish() (either with checking cipher != null or initiated == true) seems to do the trick so

[iText-questions] possible bug in PdfReader while decrypting Pdf content

2014-11-21 Thread Ondřej Smetana
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