Hi,
I am trying to extract text out of docx file using Aspose word for Java version 2.4.1. Following is the code for that.
Document templateDoc = new Document("C:\temp\2007.docx");
String text = templateDoc.getText();
System.out.println(text) ;
But Aspose is throwing UnsupportedFileFormatException
Exception in thread "main" com.aspose.words.UnsupportedFileFormatException: docx
at com.aspose.words.Document.a(Unknown Source)
at com.aspose.words.Document.(Unknown Source)
at com.aspose.words.Document.(Unknown Source)
Am i missing something here?
Please find the attched 2007 docx file which I am using with this code.
-Sunil