Registry / utility / lopdf
library0.40.0rscratesunverified

A Rust library for PDF document manipulation.

# Cargo.toml [dependencies] lopdf = "0.40.0"
INSTALL
IMPORT
SIG · LOPDF
L
lopdf
utilityrustv0.40.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Document
use lopdf::Document;

Loads a PDF file and prints the number of pages.

use lopdf::Document; fn main() { let doc = Document::load("example.pdf").unwrap(); let pages = doc.get_pages(); println!("Number of pages: {}", pages.len()); }
Debug
Known issues
gotchaSome PDF features may require additional dependencies or incomplete support.
fix
Check the documentation for supported PDF versions and features.
affects: >=0.40.0
Upgrade
Version history
0.40.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
lopdf — cargo add lopdf · libregistry