GroupDocs.Parser for Java is a text, image and metadata extractor API, supporting more than 50 popular document types to help building business applications with features of parsing raw, structured & formatted text. It also supports parsing documents using predefined templates and allows extracting complex data from invoices and other typical documents with speed and accuracy. GroupDocs.Parser for Java enables you to extract text and metadata from password protected files of all popular formats including Word processing documents, Excel spreadsheets, PowerPoint presentations, OneNote, PDF files and ZIP archives.
GroupDocs.Parser API is a right choice for corporate solutions which needs file text extraction feature. These APIs are well supported on all major operating systems and platforms including Java runtime: J2SE 6.0 and above.
GroupDocs.Parser for Java makes it easy for Java developers to extract a text from a RTF file by implementing a few easy steps.
// Extract text from RTF file using GroupDocs.Parser API
// Create an instance of Parser class
try (Parser parser = new Parser(filePath)) {
// Extract a text into the reader
try (TextReader reader = parser.getText()) {
// Print a text from the document
// If text extraction isn't supported, a reader is null
System.out.println(reader == null ? "Text extraction isn't supported" : reader.readToEnd());
}
}
GroupDocs.Parser for Java APIs are supported on all major platforms and operating systems. Before executing the code below, please make sure that you have the following prerequisites installed on your system.
Extract text from RTF file right now by visiting GroupDocs.Parser Live Demos website. The live demo has the following benefits.
No need to download API
No need to write any code
Just upload the source file
Get download link to save the file
Java documents parse & text extraction API for file formats and images. Extract data for some of the popular file formats as stated below.
(Visio Macro-Enabled Drawing)
(Visio Drawing)
(Visio Macro-Enabled Stencil File)
(Visio Stencil File)
(Visio Macro-Enabled Drawing Template)
(Visio Drawing Template)
(Visio Stencil XML File)
(Anim8or 3D Model)
(Excel Macro-Enabled Add-In)
(Microsoft Excel Spreadsheet (Legacy))
(Excel Binary Workbook)
(Macro-enabled Spreadsheet)
(Open XML Workbook)
(Excel 97 - 2003 Template)
(Excel Macro-Enabled Template)
(Excel Template)