Skip to main content
interface Document
import { type Document } from "https://deno.land/x/ai_form_recognizer@v1.1.0/mod.ts";

An object describing the location and semantic content of a document.

Properties

docType: string

Document type.

optional
boundingRegions: BoundingRegion[]

Bounding regions covering the document.

spans: DocumentSpan[]

Location of the document in the reading order concatenated content.

optional
fields: { [propertyName: string]: DocumentField; }

Dictionary of named field values.

confidence: number

Confidence of correctly extracting the document.