JWordConvert is a Java library that can read and render Word documents natively to convert to PDF, to convert to images, or to print the documents automatically. The library is 100% Java so it can run on any platform that supports Java, including Windows, Linux, Unix (AIX, Solaris Spark, Solaris Intel, HP-UX) and Mac OSX. We are pleased to announce the release of Aspose.Pdf for Java 4.5.0 which provides some great and exciting new features. Convert PDF Files to Word Doc, XSL-FO & PCL to PDF Conversion Using.
Java code to convert doc/docx/pdf formated files to txt format. You can directly copy paste this code in eclipse/net-beans and run it. PREFACE Use this string variable to locate your file which you wanted to convert in txt format. RESULT Use this variable to locate your file in which you wanted your converted file.
Dependency It depend on Itext library & on Apache POI-3.10 library. You have to download jar files of above dependency and need to build it. Link to download itext jars