pub struct GraphicsExtractor { /* private fields */ }Expand description
Graphics extractor for parsing PDF content streams.
Implementations§
Source§impl GraphicsExtractor
impl GraphicsExtractor
Sourcepub fn new(config: ExtractionConfig) -> Self
pub fn new(config: ExtractionConfig) -> Self
Creates a new graphics extractor with the given configuration.
Sourcepub fn config(&self) -> &ExtractionConfig
pub fn config(&self) -> &ExtractionConfig
Gets the current configuration.
Sourcepub fn extract_from_page<R: Read + Seek>(
&mut self,
document: &PdfDocument<R>,
page_index: usize,
) -> Result<ExtractedGraphics, ExtractionError>
pub fn extract_from_page<R: Read + Seek>( &mut self, document: &PdfDocument<R>, page_index: usize, ) -> Result<ExtractedGraphics, ExtractionError>
Auto Trait Implementations§
impl Freeze for GraphicsExtractor
impl RefUnwindSafe for GraphicsExtractor
impl Send for GraphicsExtractor
impl Sync for GraphicsExtractor
impl Unpin for GraphicsExtractor
impl UnsafeUnpin for GraphicsExtractor
impl UnwindSafe for GraphicsExtractor
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