We are using DocumentDataSource in our project and trying to read a PDF document. Earlier we were using XPS document and everything except for range printing was working fine. In another requirement we are trying to read and display PDF document in Silver-Light.
Using class PdfDocumentReader of FirstFloor.Documents.Pdf for the same. We have mix of PDF documents with some having "Password Security" ( PDF -> Properties -> Security Tab ) and some having "No Security"
Unable to read the document as getting PdfParseExcception.
On debugging the latest document tool kit library (Document Toolkit Extensions 220.127.116.11 ) for investigating further, found the places where it is getting exceptions :
1) ParseDocument method in PdfParser.cs class at Encrypt.Get
2) DecodeFilter in FlateDecode.cs class in predictor == 1 case
and many more.
Can you please help me to read all kinds of PDF documents. Does the existing library requires some code changes to support PDF's with different properties?
I am attaching PDF file for your reference. the first one with password security and later one with no security (casestudy_031103.pdf).