Introducing GroupDocs.Parser for Java

What Is GroupDocs.Parser?

GroupDocs.Parser is a powerful document data extraction API from over 65 document types in your applications. Many popular formats are supported: PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, ODT, ODS, RTF, EPUB and many others.

One of the most valuable features of GroupDocs.Parser is parsing documents with predefined templates. It’s easy to define template and extract data from invoices, prices or other kinds of your typical documents.

The API allows to easily extract text in accurate and quick modes. There are several advanced methods to extract text.

The API also provides methods to extract images, extract metadata. You can do it with regular documents and containers like ZIP archives, OST/PST mail data files and PDF portfolios.

If you want to extract PDF forms, GroupDocs.Parser also allows to do it.

Why Use GroupDocs.Parser?

  • No additional software is required to extract text, metadata, and images from PDF, Office documents, and 65+ formats out of the box. Note: GroupDocs.Parser for Java has no built-in OCR; to extract text from scanned documents and images, plug in an OCR library of your choice through an OCR connector (see OCR usage);
  • Online free document data extraction App for simple cases and powerful Java library for many data extraction scenarios;
  • Accurate and fast Raw text extraction modes;
  • Document information extraction - file type, page count etc;
  • Metadata extraction;
  • Images extraction;
  • Attachments extraction;
  • Parsing documents by user-generated templates;
  • Parsing PDF forms.

Key Features

  • Extract raw text and formatted text.
  • Search by keywords with advanced options (case sensitivity, whole word match, regex).
  • Work with document metadata and structured elements.
  • Extract images, attachments, and tables.
  • Use parsing templates to extract data fields with precision.

Getting Started

Installation

Add GroupDocs.Parser for Java to your Maven project from the GroupDocs Repository:

<repositories>
    <repository>
        <id>GroupDocsJavaAPI</id>
        <name>GroupDocs Java API</name>
        <url>https://releases.groupdocs.com/java/repo/</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>com.groupdocs</groupId>
        <artifactId>groupdocs-parser</artifactId>
        <version>26.10</version>
    </dependency>
</dependencies>

See Installation for Gradle and other options.

Simple Example – Extract Text

// 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());
    }
}

Document Processing Guide

Use Cases

  • Enterprise Search Systems – Integrate full-text search in internal document management.
  • eDiscovery & Legal – Extract and analyze text from legal files.
  • Financial Applications – Parse invoices, receipts, and structured data using templates.
  • Data Migration – Extract structured content for migration between document systems.

Supported Formats

CategoryFormats
DocumentsPDF, DOC, DOCX, RTF, TXT, ODT, EPUB
SpreadsheetsXLS, XLSX, ODS
PresentationsPPT, PPTX, ODP
Emails & ContainersMSG, EML, PST, OST, ZIP
Web & MarkupHTML, XHTML, XML

Full List of Supported Formats

Resources

Close
Loading

Analyzing your prompt, please hold on...

An error occurred while retrieving the results. Please refresh the page and try again.