Maybe it would help to write that into your wiki.
Here is my solution, maybe it saves someone some time:
static private int CountInPDF(MemoryStream stream){
//Instantiate PdfExtractor object
PdfExtractor extractor = new PdfExtractor();
//Bind the input PDF document to extractor
extractor.BindPdf(stream);
//Extract text from the PDF document
extractor.ExtractText();
//extractor.GetText(@"C:\tmp\text.txt");
MemoryStream mem = new MemoryStream();
extractor.GetText(mem);
StreamReader reader = new StreamReader(mem);
mem.Seek(0, SeekOrigin.Begin);
string text = reader.ReadToEnd();
//Call GetWordCount method to get word count of the input PDF file
return CountWordsInString(text);
}
static public int CountWordsInString(string text){
//adjust list to fit your needs
char[] charsToSplit = new char[]{' ', ':', ';', ',', '.', '-', '\r', '\n', '\t'};
//Split function does pretty much all the work :-)
string[] tmp = text.Split(charsToSplit, StringSplitOptions.RemoveEmptyEntries);
return tmp.Length;
}