pub struct Papyrus { /* private fields */ }Expand description
A configured extraction engine.
Construct via Papyrus::builder to customise detection thresholds,
or call the top-level convert function for zero-configuration extraction.
Implementations§
Source§impl Papyrus
impl Papyrus
Sourcepub fn builder() -> PapyrusBuilder
pub fn builder() -> PapyrusBuilder
Return a PapyrusBuilder pre-loaded with default settings.
Sourcepub fn extract(&self, pdf_bytes: &[u8]) -> ConversionResult
pub fn extract(&self, pdf_bytes: &[u8]) -> ConversionResult
Extract structured content from pdf_bytes.
Parsing and detection are best-effort: any problems are captured as
ast::Warning values in the returned ConversionResult rather
than surfaced as errors.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Papyrus
impl RefUnwindSafe for Papyrus
impl Send for Papyrus
impl Sync for Papyrus
impl Unpin for Papyrus
impl UnsafeUnpin for Papyrus
impl UnwindSafe for Papyrus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more