Word2Forrest - Apache POI Word Document Example
What is Word2Forrest example in the Apache POI package? How to run Word2Forrest example?
Word2Forrest example in the Apache POI package is a Word to XML conversion program that reads a Word document in *.doc format and generates an XML file with text from the Word document.
Word2Forrest example uses the Horrible Word Processing Format (HWPF) API, which supports Word document in *.doc format only.
Here is the command to run Word2Forrest to convert Word documents in *.doc file format compatible with Microsoft Word 97 version to XML files:
C:\fyicenter>c:\local\jdk-1.8.0\bin\java -cp .;C:\local\poi-3.15\poi-examples-3.15.jar; C:\local\poi-3.15\poi-3.15.jar; C:\local\poi-3.15\poi-scratchpad-3.15.jar org.apache.poi.hwpf.Word2Forrest simple.doc
Note that the simple.doc was created by open simple.docx in Word and save it in Word 97 (*.doc) format.
If you open the output file, text.xml, in Notepad++ editor,
you will see an XML file with text from simple.doc:
2017-02-22, 304👍, 0💬
What Is commons-logging-1.2.jar? commons-logging-1.2.jar is the JAR file for Apache Commons Logging ...
What Is mail.jar of JavaMail 1.2? I got the JAR file from javamail-1_2.zip. mail.jar in javamail-1_2...
What Is mail.jar of JavaMail 1.3? I got the JAR file from javamail-1_3.zip. mail.jar in javamail-1_3...
Oracle Database 11g Release 1 (220.127.116.11.0) JDBC Drivers for JDK 1.5. JAR File Size and Download Loca...
What Is javamail-1_2.zip? javamail-1_2.zip is the binary package of JavaMail API 1.2 in ZIP format. ...