The appendix lists some file extraction tools for commonly used format files for use in Lucene.
1. pdf format
PDF documents are quite common, but if you want to index the content, you need a dedicated tool to extract the text. The most common PDF Text Extraction Tool is product_box. Its download URL is:
Http://sourceforge.net/projects/pdfbox/
Of course, product_box has poor support for Chinese. If you want to extract text from a Chinese PDF file, you can use a tool called xpdf. The download URL is as follows:
Http://www.foolabs.com/xpdf/download.html
2. Microsoft format (Word, Excel)
To extract Microsoft Word and Excel files in this document, you can use either of the following methods:
1. Use com-Java
We know that Microsoft's Word and ExcelProgramIt exists as a COM component. If you can
ArticleSource: http://www.gins.cn/blog/article.asp? Id = 51