• Post Reply Bookmark Topic Watch Topic
  • New Topic

Parsing Word document  RSS feed

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I need to parse a Microsoft Word document, and I came across a few problems. One of them is that I need to parse out the bold faced words. Is there a StringTokenizer or Reader that recognizes bold faced words?
 
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've never used the following site, but I understand it contains useful file formatting information for programmers...

http://www.wotsit.org/

(Taking apart a Word doc is no small feat.)
[ January 03, 2005: Message edited by: marc weber ]
 
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you can get the Word document saved in RTF or HTML format instead of .doc you will probably find it easier to parse since the doc format is notoriously hard to work with.
The free Open Office (download here) product has been able to read all of my .doc files, and can save in XML or other formats that are well documented and may be easier to parse.
The Apache POI toolkit offers some support for reading .doc files - but I think their best kit is for Excel files.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!