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

<p>Here is my code:</p>

<pre><code>PDDocument doc = PDDocument.load(path);

PDFTextStripper stripper = new PDFTextStripper();

string result = stripper.getText(doc);
</code></pre>

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

<p>How to solve this ?</p>
