Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
Word2Forrest - Apache POI Word Document Example
What is Word2Forrest example in the Apache POI package? How to run Word2Forrest example?
✍: FYIcenter.com
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:
⇒ Apache POI Examples for PowerPoint Slides
⇐ SimpleTable - Apache POI Word Document Example
2017-02-22, ∼2062🔥, 0💬
Popular Posts:
Jaxen, Release 1.1.1, is an open source XPath library written in Java. It is adaptable to many diffe...
What Is ojdbc14.jar for Oracle 10g R2? ojdbc14.jar for Oracle 10g R2 is the JAR files of ojdbc.jar, ...
JDK 11 java.compiler.jmod is the JMOD file for JDK 11 Compiler module. JDK 11 Compiler module compil...
How to compare performances of various XML parsers with the jaxp\SourceValidator.jav aprovided in th...
Java Servlet 3.0 Specification API. JAR File Size and Download Location: File name: servlet-api.jar,...