DataExtraction

public final class DataExtraction implements AutoCloseable

Extracts data from a document with the same operations, the same option names and the same output files as the hosted Nutrient data extraction service, so code and knowledge carry over between the two. Like every SDK operation, each one reads its options from the document's settings: and , generated from the hosted service's parameters, and the canonical settings they alias. Options left unset keep the default the pipeline or the SDK-wide settings provide.

Functions

Link copied to clipboard
public final void close()
Closes this resource and releases any associated native resources.
Link copied to clipboard
public final ExtractResult extract()
Extracts structured data from the document with an AI model, shaped by the JSON Schema you supply.
Link copied to clipboard
public final ParseResult parse()
Parses the document into structured content (paragraphs, tables, figures, key-value regions and more) and exports it as JSON, Markdown or both.
Link copied to clipboard
public final static DataExtraction set(Document document)
Creates a DataExtraction instance for the specified document.