flpdf 0.9.0

A pure-Rust PDF toolkit modeled on qpdf — read, rewrite, linearize, and inspect PDFs.
Documentation
//! Linearization support — data model and planning structures.
//!
//! qpdf correspondence: QPDF_linearization.cc responsibilities split across the linearization module tree.
//!
//! This module implements the planning layer for producing PDF linearized output
//! (ISO 32000-1 Annex F / "fast web view").  It intentionally contains **no I/O**:
//! the types here are pure data used by the writer components.

pub mod back_patch;
pub mod check;
pub mod hint_page;
pub mod hint_shared;
pub mod hint_stream;
pub mod part1;
pub mod plan;
pub mod renumber;
pub mod show;
pub mod writer;

// The qpdf-faithful cross-reference *stream* encoder used by the linearized
// ObjStm writer (compressed `/Predictor 12` `/W [1 2 1]` streams in qpdf's fixed
// key order, with qpdf's two-pass writePad region sizing). The implementation
// lives in the shared writer serializer and is also used by the plain pipeline.
pub use back_patch::back_patch_param_dict;
pub use check::{
    check_linearization, check_linearization_bytes, check_linearization_path, CheckResult,
    LinearizationCheckError,
};
pub(crate) use check::{
    check_linearization_parameters, check_linearization_warnings, LinearizationParameterCheck,
};
pub use hint_page::{bits_needed, PageOffsetEntry, PageOffsetHeader, PageOffsetHintTable};
pub use hint_shared::{SharedObjectEntry, SharedObjectHeader, SharedObjectHintTable};
pub use hint_stream::{encode_hint_stream, HintStreamBytes};
pub use part1::{Part1Bytes, Part1Placeholders, PLACEHOLDER_WIDTH};
pub use plan::{LinearizationPlan, PageHintEntry, SharedObjectHintEntry};
pub use renumber::{ObjStmRelocation, RenumberMap};
pub use show::{
    show_linearization_bytes, show_linearization_bytes_with_warnings, show_linearization_path,
    show_linearization_path_with_warnings, show_linearization_pdf_with_warnings,
    ShowLinearizationError, ShowLinearizationOutput,
};
pub use writer::{LinearizedDocument, LinearizedOffsets};