Package com.extractpdf4j.parsers


package com.extractpdf4j.parsers
PDF parsing strategies that convert document content into structured tables.

Choose a strategy

STREAM
Use text positions to group rows and columns in PDFs with selectable text.
LATTICE
Use visible horizontal and vertical rules to find cells in a table grid.
OCRSTREAM
Recognize text and locate columns in scanned pages.
HYBRID
Compare strategies for documents with mixed or unknown layouts.
Synthetic PDF and CSV excerpts showing the 3 April ATM withdrawal in the Debit column.
Example transaction rows extracted from a text-based PDF.
  • Classes
    Class
    Description
    BaseParser
    Experimental hybrid parser that invokes an injected ML extractor only when the existing Stream, Lattice, and OCR strategies return no tables.
    HybridParser
    LatticeParser
    OcrStreamParser (header-aware): - Removes horizontal *and* vertical rules before OCR.
    StreamParser