How to ignore notes when calling GetWordCountInfo?
I'm using ITextUtils::GetWordCountInfo, works great except when there are notes. What do I have to do to ignore counting notes?
Thanks!
I'm using ITextUtils::GetWordCountInfo, works great except when there are notes. What do I have to do to ignore counting notes?
Thanks!
How about this:
This should count the number of words in main thread. It shouldn't count words in headers, footers and notes, as they are stored withing separarate threads. Table cell text is also stored in separate threads, thus you should probably iterate over those threads too and count their words.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.