Hi,
we are trying to evaluate aspose words for getting word count which is critical functionality in our product,
although when i use maven dependencies provided for trial it gives inaccurate results.
here is the dependency and code that i have used
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-total</artifactId>
<version>22.12</version>
<type>pom</type>
</dependency>
public void getCountfromAsposeDependency(@RequestParam("file") MultipartFile file) {
Document document = new Document(file.getInputStream());
//Document document = new Document("thinkning.doc");
document.updateWordCount(true);
BuiltInDocumentProperties properties = document.getBuiltInDocumentProperties();
System.out.println(" no of words in doc " +properties.getWords());
System.out.println(properties.getLines());
System.out.println(properties.getPages());
}
note: we have tried aspose words as well it gives same result, word count difference seems to be hhuge