This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes How to convert a .doc file to .txt file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "How to convert a .doc file to .txt file" Watch "How to convert a .doc file to .txt file" New topic

How to convert a .doc file to .txt file

R Karthick

Joined: Feb 11, 2008
Posts: 11
I have a .doc file which contains data inside a table. Now i want to parse the table to get the table values. Normal Parsing is not working for table( I mean using String tokenizer) because it is giving some unwanted special characters while parsing the table. So I just want to convert that .doc to .txt file, then only it is easy to split the values. But i can't make it! Can any one please tell me how to parse a MS WORD TABLE Values?
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Apache POI is the API you can use.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42033
  64 in particular tells you how to extract text from a Word document.

Ping & DNS - my free Android networking tools app
GeeCON Prague 2014
subject: How to convert a .doc file to .txt file