Keyboard shortcuts

Press ← or β†’ to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

API Documentation (Rustdoc)

The complete, item-level Rust documentation for rust-pdf-box is generated using Rust’s official cargo doc tool and bundled alongside this guide.



Module Overview

The rust-pdf-box crate is divided into the following key modules:

ModuleDescription
preludeThe most common types, builders, and enums re-exported for easy glob import (use rust_pdf_box::prelude::*;).
facadePdfDocument - high-level, context-oriented document management, stamping, and signing facade.
cosLow-level PDF object system: COSObject, COSDocument, COSStream, COSArray, COSDictionary, parser, and lexer.
pdHigh-level Page Description layer: PDDocument, PDPage, PDRectangle, PDResources, and PDDocumentCatalog.
contentContent stream engine: PDPageContentStream, path painting, clipping, color models, and graphics states.
stampFluent watermarking, rubber stamps, headers/footers, and page range selectors (PageRange, StampPosition).
signCryptographic signature engine: Signer, SignatureVerifier, visual appearances, and detached PKCS#7 signing.
cryptoPure-Rust cryptographic building blocks: ASN.1 DER encoder, X.509 v3 certificate generator, and RSA-SHA256 signer.
interactiveInteractive AcroForms (PDAcroForm, PDFormField), form flattening, and page annotations (PDAnnotation).
fontStandard 14 Type 1 PDF fonts (PDType1Font) and embedded TrueType fonts (PDTrueTypeFont).
imageImage embedding (PDImageXObject), JPEG direct pass-through, and PNG with transparency /SMask.
manipulationDocument assembly tools: PDFMerger and PDFSplitter.
textText extraction engine: PDFTextStripper.