Hi all, First off, thanks for the terrific work you all have done on the PDFbox.dll. Hopefully some day when I'm smart enough I can assist in some way. :) In the mean time though...
The dll is a black box to me so I'm confused why I'm getting this error: "Object reference not set to an instance of an object." I have a function which cycles through PDFs. A fairly routine request right? Here's the code in question: string parse = null; if (title.Contains(".pdf")) { PDDocument doc = PDDocument.load(filepath); PDFTextStripper pdfStripper = new PDFTextStripper(); parse = pdfStripper.getText(doc).ToUpper(); } It bombs out on the last line (where "parse" is set). The only problem is it just started doing this after working for some time. The only thing that's changed is I've moved the function from a button_click event to it's own function? I check everything in debug mode and nothing is missing. The PDF loads as it should (seemingly). Any ideas at all? Thanks, Roy