Nutrient Java SDK
Nutrient Data Extraction SDK for Java runs on your own servers. It parses PDFs and images into JSON with bounding boxes and confidence scores, extracts fields into your JSON Schema, classifies documents, and splits merged files. It’s sold separately from the cloud Nutrient Data Extraction API.
Need pricing or implementation help? Talk to Sales.
ICR EXTRACTION
import io.nutrient.sdk.Document;import io.nutrient.sdk.Vision;import io.nutrient.sdk.enums.VisionEngine;
try (Document document = Document.open("scan.png")) { // Local AI — offline after the first model download document.getSettings().getVisionSettings() .setEngine(VisionEngine.Icr);
Vision vision = Vision.set(document); String json = vision.extractContent(); // Structured JSON: text, tables, key-value // pairs, equations, bounding boxes}Detect tables automatically and extract individual cell contents with row and column structure. Handles complex layouts with merged cells, irregular borders, and nested tables.
Identify form-like key-value regions in invoices, receipts, and structured documents. No predefined templates required — the AI adapts to any document layout.
ICR runs on your infrastructure, with no external API calls once its models have downloaded. Documents and results stay on your servers, which helps teams meet requirements such as HIPAA and GDPR. Preload the models to run in air-gapped environments.
Every extraction returns classified elements with bounding boxes, confidence scores, and hierarchical reading order. Parse results programmatically without post-processing.
High-speed text extraction with word-level bounding boxes for search indexing and digitization.
Extract tables, equations, and key-value regions with offline AI that understands document layout.
Maximize accuracy on complex documents by combining local AI with vision language models.
Generate natural language descriptions and WCAG-compliant alt text from document images.
Generate alt text and visual summaries through OpenAI’s managed API, with no local model to host.
Run vision language models on your own infrastructure for complete data privacy.
Data Extraction detects and classifies document elements automatically. Each element comes with bounding boxes, confidence scores, and its position in the document reading order.
OCR ICR VLM-enhanced ICR JSON Bounding boxes Confidence scores Element types INTELLIGENT DOCUMENT PROCESSING
Traditional extraction tools parse text line by line. Nutrient Data Extraction sees the full document layout — tables, columns, headers, reading order — and returns classified, structured data ready for your Java application to consume.
Detect tables with or without visible borders. Extract cell contents with row and column positions, even from scanned documents with irregular layouts.
Identify form-like key-value pairs without predefined templates. The AI learns document structure on the fly, adapting to invoices, receipts, and forms.
Detect and extract equations with LaTeX representations from scientific papers, textbooks, and technical documentation.
Every extracted element includes a confidence score. Set quality thresholds to filter results and flag documents that need manual review.
This is Data Extraction in the Java SDK — self-hosted, with no network required once the models have downloaded. The same engine is also available as the hosted cloud Data Extraction API.
The ICR and VLM-enhanced ICR engines analyze document layout using AI to detect table regions, identify row and column boundaries, and extract individual cell contents. This works on both native PDFs and scanned documents, including tables without visible borders. The output is structured JSON with each cell mapped to its row and column position, making it straightforward to convert to CSV, database records, or any structured format your application needs.
No. Data Extraction analyzes document structure on the fly using AI. It detects tables, key-value pairs, headings, and other elements without predefined templates or training data. This means it works on invoices from any vendor, receipts in any format, and forms with any layout. The AI adapts to each document individually, eliminating the setup and maintenance cost of template-based extraction systems.
Yes. All three engines process both native PDFs and scanned documents. The OCR engine extracts text with bounding boxes from scanned images. The ICR engine goes further, applying AI to understand document structure and extract tables, key-value pairs, and semantic elements from scans. The VLM-enhanced engine adds vision language model processing for maximum accuracy on challenging scanned documents with poor quality or complex layouts.
Data Extraction returns structured JSON containing classified document elements. Each element includes its type (table, paragraph, heading, equation, key-value region, figure), text content, bounding box coordinates, and confidence score. Tables include cell-level data with row and column positions. The JSON also includes the document reading order, so you can reconstruct the logical flow of content. You can save output directly to a JSON file or process it in memory.
OCR provides fast, reliable text extraction and is best for simple documents where you need raw text and positions. ICR adds AI-powered structural analysis and significantly improves results on documents with tables, mixed layouts, and form-like content — all while running locally. VLM-enhanced ICR combines local AI with a vision language model for higher extraction accuracy on complex documents, such as pages with irregular table structures.
Yes. The OCR and ICR engines run on your infrastructure, with no external API calls once the required models have downloaded on first use. Documents and results stay on your servers, which helps teams meet requirements such as HIPAA and GDPR. VLM-enhanced extraction also runs on your servers by default: The local provider runs a model in the SDK process, downloads its model files on first use, and needs at least 10 GB of available GPU memory (VRAM), or available unified memory on Apple silicon, for GPU acceleration. Connecting a separately managed OpenAI-compatible server, such as Ollama, LM Studio, or vLLM, is optional.
Java 8 or later and Nutrient Java SDK. The layout analysis models download automatically on first use and are cached for later runs. The default local model for VLM-enhanced extraction also downloads on first use and needs at least 10 GB of available VRAM, or available unified memory on Apple silicon, for GPU acceleration. Some features need options in your license: Structured extraction requires the vision data extraction feature, classification requires the vision image classification feature, and document splitting requires the document split feature. To skip local hardware entirely, use the cloud Nutrient Data Extraction API.
Tabula is an open source library that extracts tables from native PDFs by parsing the underlying text positions. It works well on digitally created PDFs with clear table structures, but it cannot process scanned documents and struggles with tables that lack visible borders. Nutrient Data Extraction uses AI to detect tables regardless of borders, works on both scanned and native documents, and also extracts key-value pairs, equations, and document structure — returning everything as classified JSON with confidence scores.
Data Extraction processes PDFs (both native and scanned) and common image formats, including PNG, JPEG, and TIFF. You open a PDF directly, so there’s no separate conversion step. All three engines accept the same input formats, making it easy to switch between them based on your accuracy and performance needs.
Yes. The ICR and VLM-enhanced engines are well suited for invoice and financial document processing. They detect tables with line items and totals, identify key-value pairs like vendor names, dates, and amounts, and understand the hierarchical structure of a document. Because the extraction is template-free, it works across different invoice formats and vendors without per-vendor configuration. Use VLM-enhanced mode for the highest accuracy on complex financial layouts.
Add the Nutrient Java SDK dependency to your project and follow the getting started guide for installation. For data extraction, open a document, create a vision instance, select your engine (OCR, ICR, or VLM-enhanced), and call the extraction method. The SDK returns structured JSON that you can parse and process immediately. The extraction guides include step-by-step examples for each engine and use case.
Also available for
More Java SDK capabilities