xberg 1.0.2

High-performance document intelligence library for Rust. Extract text, metadata, and structured data from PDFs, Office documents, images, and 98 formats and 306 programming languages via tree-sitter code intelligence with async/sync APIs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! PDF text hierarchy utilities (backend-agnostic).
//!
//! Provides font-size clustering, heading level assignment, and shared segment
//! data types used by the oxide PDF extraction pipeline.

mod bounding_box;
mod clustering;
mod types;

pub use bounding_box::BoundingBox;
pub(crate) use clustering::{assign_heading_levels_smart, cluster_font_sizes};
pub(crate) use types::{SegmentData, TextBlock};