Expand description
Public schema and error types for the spdf workspace.
Mirrors [liteparse/src/core/types.ts] so JSON output stays schema-compatible.
Structs§
- Bounding
Box - Axis-aligned bounding box defined by top-left and bottom-right corners.
- Coordinates
- A rectangle defined by position and dimensions.
- Debug
Config - Grid projection debug knobs. Replaces the bespoke
gridDebugLoggerwith atracing-friendly config surface. - Image
- Embedded image bounds, used for selective OCR.
- Json
Page - One page of the JSON output.
- Json
Text Item - A text element from JSON output.
- Markup
Data - Markup annotation data associated with a text item.
- OcrData
- Raw OCR detection result before conversion to
TextItem. - Parse
Config - Full parser configuration. Defaults are identical to
DEFAULT_CONFIGin [liteparse/src/core/config.ts]. - Parse
Result - The result of parsing a document.
- Parse
Result Json - Structured JSON output. Returned when
output_format == Json. - Parsed
Page - Parsed data for a single page.
- Projection
Text Box - A working copy of a text item used during grid projection. Separate from
TextItembecause it carries algorithm-internal metadata. - Region
Filter - Screenshot
Result - Result of rendering a page to an image.
- Text
Item - An individual text element extracted from a page.
Enums§
- Language
- One or more language codes.
- Output
Format - Output format.
- Parse
Input - A document source: either a file path or raw bytes.
- Snap
- Snap alignment for a projection box.
- Spdf
Error