rust-pdf-box Documentation
A comprehensive, pure Rust implementation of Apache PDFBox featuring modern, context-oriented, and ergonomic PDF processing.
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 usingPDFTextStripper. -
๐ 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.
Project Links & Community
- GitHub Repository: techwastiinfotech/rust-pdf-box
- Crates.io Package: crates.io/crates/rust-pdf-box
- Docs.rs Reference: docs.rs/rust-pdf-box
- License: MIT or Apache-2.0
- Maintained by: Techwasti Infotech