For the complete documentation index, see llms.txt. This page is also available as Markdown.

Key Value Extraction

Requirements

These packages are required to use these features in production. Trial keys have unlimited access to all features

Package: Smart Data ExtractionModule: Data ExtractionLive demo

Apryse's Key-Value Extraction engine helps you automatically identify and extract meaningful key-value pairs from PDFs — even when the document is unstructured or doesn't contain form fields. Whether you're processing invoices, resumes, or complex reports, KVE saves hours of manual tagging by turning documents into structured JSON.

NEW FEATURE

New in 11.8!

Exclusive to the Apryse SDK, Key-Value Extraction also supports pulling data from CAD and other technical drawing title blocks.

How It Works

The engine scans each page for likely key terms (e.g., labels, field names, categories) and maps them to associated values (e.g., specific data, answers, identifiers). This hyponymic relationship allows KVE to structure data from real-world documents without templates or prior annotation.

JSON Output Specification

Refer to the following specifications to learn more about the output JSON format:

Extract key-value pairs as JSON file

Specify the name of the input PDF file and the name of the output JSON file, then select the Generic Key Value engine:

DataExtractionModule.ExtractData("newsletter.pdf", "newsletter.json", DataExtractionModule.DataExtractionEngine.e_generic_key_value);
DataExtractionModule::ExtractData("newsletter.pdf", "newsletter.json", DataExtractionModule::e_GenericKeyValue);
DataExtractionModuleExtractData("newsletter.pdf", "newsletter.json", DataExtractionModuleE_GenericKeyValue)
DataExtractionModule.extractData("newsletter.pdf", "newsletter.json", DataExtractionModule.DataExtractionEngine.e_generic_key_value);
await PDFNet.DataExtractionModule.extractData("newsletter.pdf", "newsletter.json", PDFNet.DataExtractionModule.DataExtractionEngine.e_GenericKeyValue);
DataExtractionModule::ExtractData("newsletter.pdf", "newsletter.json", DataExtractionModule::e_GenericKeyValue);
DataExtractionModule.ExtractData("newsletter.pdf", "newsletter.json", DataExtractionModule.e_GenericKeyValue)
DataExtractionModule.ExtractData("newsletter.pdf", "newsletter.json", DataExtractionModule::E_GenericKeyValue)
DataExtractionModule.ExtractData("newsletter.pdf", "newsletter.json", DataExtractionModule.DataExtractionEngine.e_generic_key_value)

Extract key-value pairs as JSON string

Specify the name of the input PDF file, then select the Generic Key Value engine:

Optional Configurations

Use Key-Value Extraction engine with DetectAndAddFormFieldsToPDF

By default, DetectAndAddFormFieldsToPDF uses the Form Field Detection engine. You can force the function to use the Form Field Key-Value Extraction engine using the "Form Extraction Engine" option.

NOTE

This option only has an effect on the `DetectAndAddFormFieldsToPDF` function. Passing this option to `ExtractData` will have no effect, as the `engine` parameter will take precedence.

Last updated

Was this helpful?