spdf-types 0.2.0-alpha.1

Core types for the spdf workspace: TextItem, ParsedPage, ParseResult, ParseConfig.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Public schema and error types for the spdf workspace.
//!
//! Mirrors [`liteparse/src/core/types.ts`] so JSON output stays schema-compatible.

#![warn(clippy::all, missing_debug_implementations)]

mod config;
mod error;
mod input;
mod text;

pub use config::{DebugConfig, Language, OutputFormat, ParseConfig, RegionFilter};
pub use error::{SpdfError, SpdfResult};
pub use input::ParseInput;
pub use text::{
    BoundingBox, Coordinates, Image, JsonPage, JsonTextItem, MarkupData, OcrData, ParseResult,
    ParseResultJson, ParsedPage, ProjectionTextBox, ScreenshotResult, Snap, TextItem,
};