Use the Java Tika text extraction library on the .NET platform