Java Reference
In-Depth Information
Using POI to extract text from Word documents
The Apache POI Project ( http://poi.apache.org/index.html ) is an API used to extract in-
formation from Microsoft Office products. It is an extensive library that allows information
extraction from Word documents and other office products, such as Excel and Outlook.
When downloading the API for POI, you will also need to use XMLBeans ( ht-
tp://xmlbeans.apache.org/ ) , which supports POI. The binaries for XMLBeans can be down-
loaded from http://www.java2s.com/Code/Jar/x/Downloadxmlbeans230jar.htm .
Our interest is in demonstrating how to use POI to extract text from Word documents. To
demonstrate this use, we will use a file called TestDocument.docx , as shown in the
following screenshot:
Search WWH ::




Custom Search