File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Spring in Action this week in the Spring forum!
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
Author

How to convert a .doc file to .txt file

R Karthick
Greenhorn

Joined: Feb 11, 2008
Posts: 11
Hi,
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
Bartender

Joined: Apr 14, 2004
Posts: 10336

Apache POI is the API you can use.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42264
    
  64
http://poi.apache.org/hwpf/quick-guide.html in particular tells you how to extract text from a Word document.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to convert a .doc file to .txt file