Registry / utility / pdf-extract

pdf-extract

JSON →
library0.10.0rscratesunverified

A library to extract content from PDFs, including text and metadata.

# Cargo.toml [dependencies] pdf-extract = "0.10.0"
INSTALL
IMPORT
SIG · PDF-EXTRACT
P
pdf-extract
utilityrustv0.10.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.

extract_text
use pdf_extract::extract_text;

Extracts text from a PDF file.

use pdf_extract::extract_text; fn main() { let text = extract_text("document.pdf").unwrap(); println!("Extracted text: {}", text); }
Debug
Known issues
gotchaMay fail on encrypted or malformed PDFs; requires the 'lopdf' backend which has limited support for some PDF features.
fix
Ensure PDF is not encrypted and is well-formed; consider using a different library for complex PDFs.
affects: >=0.10.0
Upgrade
Version history
0.10.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
pdf-extract — cargo add pdf-extract · libregistry