pub struct StreamProcessor<R: Read + Seek> { /* private fields */ }Expand description
Stream processor for incremental PDF processing
Implementations§
Source§impl<R: Read + Seek> StreamProcessor<R>
impl<R: Read + Seek> StreamProcessor<R>
Sourcepub fn new(reader: R, options: StreamingOptions) -> Self
pub fn new(reader: R, options: StreamingOptions) -> Self
Create a new stream processor
Sourcepub fn process_with<F>(&mut self, callback: F) -> Result<()>
pub fn process_with<F>(&mut self, callback: F) -> Result<()>
Process a PDF incrementally with a callback
Sourcepub fn process_pages<F>(&mut self, page_callback: F) -> Result<()>
pub fn process_pages<F>(&mut self, page_callback: F) -> Result<()>
Process pages incrementally
Auto Trait Implementations§
impl<R> Freeze for StreamProcessor<R>where
R: Freeze,
impl<R> RefUnwindSafe for StreamProcessor<R>where
R: RefUnwindSafe,
impl<R> Send for StreamProcessor<R>where
R: Send,
impl<R> Sync for StreamProcessor<R>where
R: Sync,
impl<R> Unpin for StreamProcessor<R>where
R: Unpin,
impl<R> UnwindSafe for StreamProcessor<R>where
R: UnwindSafe,
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