Skip to main content

Crate pdf_toolkit

Crate pdf_toolkit 

Source
Expand description

One crate for the whole toolkit. Each module is one of the layered crates, re-exported behind a feature so a reader-only build stays small and no_std.

let bytes = std::fs::read("book.pdf")?;
let source = pdf_toolkit::core::PdfSource::new(bytes)?;
let text = pdf_toolkit::text::extract::extract_text(source, pdf_toolkit::core::Limits::default())?;
println!("{}", text.text);

Re-exportsยง

pub use pdf_core as core;
pub use pdf_text as text;