import { type DocumentPage } from "https://deno.land/x/aiformrecognizer@v1.1.0/src/mod.ts";
Content and layout elements extracted from a page from the input.
Properties
The general orientation of the content in clockwise direction, measured in degrees between (-180, 180].
optional
unit: LengthUnitThe unit used by the width, height, and polygon properties. For images, the unit is "pixel". For PDF, the unit is "inch".
spans: DocumentSpan[]
Location of the page in the reading order concatenated content.
optional
words: DocumentWord[]Extracted words from the page.
optional
selectionMarks: DocumentSelectionMark[]Extracted selection marks from the page.
optional
lines: DocumentLine[]Extracted lines from the page, potentially containing both textual and visual elements.