PDFTextStripper gives "Object reference not set to an instance of an object" exception
I am using PDFTextStripper class and for some .pdf files i am able to get proper text but some .pdf files its throwing the exception "Object reference not set to an instance of an object".

Here is my code:

PDDocument doc = PDDocument.load(path);

PDFTextStripper stripper = new PDFTextStripper();

string result = stripper.getText(doc);

Note: I have checked that .pdf file is not a image .pdf file(like scanned docs..) its a text .pdf file.

Please help, Thanks in advance...

PDFTextStripper gives "Object reference not set to an instance of an object" exception
===

I am using PDFTextStripper class and for some .pdf files i am able to get proper text but some .pdf files its throwing the exception "Object reference not set to an instance of an object".

Here is my code:

PDDocument doc = PDDocument.load(path);

PDFTextStripper stripper = new PDFTextStripper();

string result = stripper.getText(doc);

Note: I have checked that .pdf file is not a image .pdf file(like scanned docs..) its a text .pdf file.

Please help, Thanks in advance...
