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

rust-pdf-box Documentation

A comprehensive, pure Rust implementation of Apache PDFBox featuring modern, context-oriented, and ergonomic PDF processing.


๐Ÿš€ Get Started Immediately

ResourceDescriptionLink
Quick Start5-minute tutorial to create, stamp, and sign PDFsRead Guide โ†’
CLI UtilityStandalone pdfbox command-line utility referenceCLI Reference โ†’
System ArchitectureMulti-layer COS, PD, content stream, and crypto diagramsView Architecture โ†’
API DocumentationFull Rustdoc crate reference with all types and traitsBrowse Rustdoc โ†’

What is rust-pdf-box?

rust-pdf-box is an open-source, pure Rust library bringing the full feature set of Apache PDFBox into modern Rust with zero external C/C++ or OpenSSL dependencies.

Designed and maintained by Techwasti Infotech, rust-pdf-box eliminates the boilerplate typical of low-level PDF manipulation. It provides a simple, context-oriented facade that makes common, high-demand operationsโ€”such as digital signing with ISO 32000 compliance, watermarking, rubber stamping, interactive AcroForm processing, and document merging/splittingโ€”straightforward, fast, and reliable.


Core Feature Guides

  • ๐Ÿ“‘ Stamping & Watermarking
    Apply semi-transparent diagonal watermarks, official rubber stamps, headers, and footers across page ranges with dynamic {page} and {total} substitutions.

  • ๐Ÿ”’ Digital Signatures (ISO 32000 PKCS#7 / CMS)
    Pure-Rust detached PKCS#7 signing, built-in X.509 v3 self-signed certificate generation, visual signature appearances, and cryptographic tamper verification.

  • ๐Ÿ“ Interactive Forms (AcroForms) & Annotations
    Inspect, update, and flatten interactive form fields (/Tx, /Btn, /Ch, /Sig), and attach clickable hyperlink annotations (/Link).

  • ๐Ÿ—‚๏ธ Document Assembly
    Merge multiple PDF documents with automatic conflict-free object ID remapping, split into single pages, or rotate pages.

  • ๐Ÿ” Text Extraction
    Extract UTF-8 text from PDF content streams with accurate layout reconstruction using PDFTextStripper.

  • ๐Ÿ”„ Apache PDFBox Migration Guide
    Class-by-class comparison, memory safety advantages, and side-by-side Java vs. Rust code samples.

  • ๐Ÿข Enterprise Integration & Artifacts
    Guidance for Python, Node.js, Docker, pre-compiled platform binaries, and CI/CD pipelines.

  • ๐Ÿ“š Full Rustdoc API Reference
    Complete auto-generated Rust documentation covering every module, function, and struct.