flpdf 0.9.0

A pure-Rust PDF toolkit modeled on qpdf — read, rewrite, linearize, and inspect PDFs.
Documentation
//! Coordinate document-level inspection, transformation, and output policies.
//!
//! qpdf correspondence: QPDFJob.cc command and JSON section orchestration.
//!
//! The module contains the shared qpdf 11.9.0 job lifecycle state and the JSON
//! output-selection responsibility from `QPDFJob::writeJSON`, the staged
//! `doJSON*` section builders, the page-selection merge boundary owned by
//! `QPDFJob::handlePageSpecs`, the attachment inspection consumers, the
//! `--overlay`/`--underlay` (`handleUnderOverlay`) and `--collate` orchestration,
//! the post-subset resource/reachability and AcroForm pruning
//! (`prune_after_subset`, `prune_acroform_after_subset`),
//! the `--remove-unreferenced-resources` job policy,
//! attachment listing/formatting, the `--rotate` spec and page-operation route,
//! and the `--check`
//! document-check consumer (`QPDFJob::doCheck`/`doInspection`).

mod acroform_field_prune;
mod attachment_list;
mod attachments;
mod check;
mod image_optimization;
mod inspection;
mod json;
mod json_sections;
mod lifecycle;
mod outline_dest_remap;
mod overlay;
#[cfg(test)]
mod page_combine;
mod page_merge;
mod page_plan;
mod page_range;
mod page_specs;
mod page_split;
mod page_subset;
mod resource_pruning;
mod rotate;
mod rotate_spec;

pub use acroform_field_prune::DEFAULT_MAX_ACROFORM_DEPTH;
#[allow(deprecated)]
pub use attachments::{
    add_attachment_from_path, ascii_filename_fallback, extract_attachment,
    extract_attachment_to_path, write_attachment, AttachmentAddOptions, AttachmentCopyOptions,
    AttachmentCopySource,
};
#[cfg(test)]
pub(crate) use check::check_bytes_for_test;
pub use check::CheckError;
pub use image_optimization::{optimize_images, ImageOptimizationOptions};
pub use json::JsonStreamData;
pub(crate) use json_sections::checksum_to_hex;
pub use lifecycle::{FlattenAnnotationsMode, JobDocument, JobExitCode, QPDFJob, QPDFJobConfig};
pub use outline_dest_remap::{remap_outline_and_dests, remap_outline_and_dests_with_max_depth};
pub use overlay::{
    handle_under_overlay, overlay_verbose_report, OverlayKind, OverlaySpec, OverlayVerbosePage,
    OverlayVerboseSource,
};
pub use page_merge::{merge_documents, MergeInput};
pub use page_range::PageRange;
pub use page_specs::copy_duplicate_page_annotations;
pub use resource_pruning::RemoveUnreferencedResources;
pub use rotate::flatten_rotation_on_pages;