Skip to content

danielpradilla/WordCounter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

##WordCounter

These are a couple of classes for counting words in Microsoft Word Documents. One in groovy and one in C#

The groovy one I took from https://gist.github.com/kaisternad/7736686 It relies on Apache Tika

I realized that sometimes Tika reports the last saved word count stored in the metadata of the file. This word count may or may not be the real word count of the document!

So if you're going to stick the groovy script and Apache Tika you've been warned.

###A real(er) word count For a real word count you need to open the word document, force a re-count and get that number. That's what the C# class does. It relies on Microsoft.Office.Interop.Word.

Needless to say, you need Windows MS Word installed in the machine executing the class.

###Usage Drop them in your project, use them as you want and drop me a note :)

About

Microsoft Word word counter c# and groovy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published