Skip to main content

Crate pdf_vdiff

Crate pdf_vdiff 

Source
Expand description

pdf_vdiff core library. Provides pure-Rust geometry, token clustering, diffing, and formatting models.

Re-exports§

pub use cli::CliArgs;
pub use cluster::cluster_and_sort_tokens;
pub use cluster::cluster_tokens_default;
pub use cluster::normalize_token_text;
pub use diff::diff_documents;
pub use diff::diff_page_pair;
pub use diff::DiffGranularity;
pub use diff::DocumentDiffResult;
pub use diff::PageDiffResult;
pub use error::PdfVdiffError;
pub use layout::CanvasLayout;
pub use layout::PageDimensions;
pub use model::DiffOpKind;
pub use model::HighlightSpan;
pub use model::PageText;
pub use model::Rect;
pub use model::TextToken;
pub use theme::DiffTheme;
pub use theme::ThemeKind;

Modules§

cli
CLI argument definitions and validation.
cluster
Unicode normalization, spatial column clustering, and reading-order reconstruction.
diff
Hierarchical 2-pass sequence diff engine and highlight box unioning.
error
Typed domain errors for pdf-vdiff.
layout
Canvas layout geometry, coordinate mapping, and pane origin transformations.
model
Core data models and geometric types for pdf-vdiff.
pdf
PDF rendering, text extraction, and vector composition module.
theme
Visual diff themes and styling palettes for pdf-vdiff.

Functions§

version
Returns the library version.