public void Init() { wrapper = new TikaWrapper(@"..\..\tika-app-0.10.jar"); DirectoryInfo d = new DirectoryInfo(@"..\..\Documents"); files = d.GetFiles(); }
static void Main(string[] args) { TikaWrapper tika = new TikaWrapper(@"..\..\tika-app-0.10.jar"); string result = tika.Extract(File.ReadAllBytes(@"..\..\Documents\Tika.docx"), true); Console.WriteLine(result); Console.ReadLine(); }