Package com.extractpdf4j.ml
Interface MlTableExtractor
public interface MlTableExtractor
Optional machine-learning table extraction strategy used by hybrid parsing.
The core module owns only this lightweight contract. Implementations may
live in an optional module and use ONNX Runtime or another local inference
engine without adding ML dependencies to extractpdf4j-core.
-
Method Summary
-
Method Details
-
extract
Extracts tables from a PDF file.- Parameters:
filepath- PDF pathpages- page selection using ExtractPDF4J syntax- Returns:
- extracted tables, never
null - Throws:
IOException- when the document or model cannot be processed
-
extract
Extracts tables from an in-memory PDF document.- Parameters:
document- open PDFBox document owned by the callerpages- page selection using ExtractPDF4J syntax- Returns:
- extracted tables, never
null - Throws:
IOException- when the document or model cannot be processed
-