pub struct PdfParser<'a> { /* private fields */ }Expand description
PDF document parser. Parses raw PDF bytes into a PdfContext.
Implementations§
Source§impl<'a> PdfParser<'a>
impl<'a> PdfParser<'a>
pub fn for_bytes(pdf_bytes: &'a [u8]) -> Self
pub fn for_bytes_with_options( pdf_bytes: &'a [u8], throw_on_invalid_object: bool, ) -> Self
Sourcepub fn parse_single_object(self) -> Result<PdfObject>
pub fn parse_single_object(self) -> Result<PdfObject>
Parse a single PDF object value from the bytes.
Sourcepub fn parse_document(self) -> Result<PdfContext>
pub fn parse_document(self) -> Result<PdfContext>
Parse a complete PDF document and return the PdfContext.
Auto Trait Implementations§
impl<'a> Freeze for PdfParser<'a>
impl<'a> RefUnwindSafe for PdfParser<'a>
impl<'a> Send for PdfParser<'a>
impl<'a> Sync for PdfParser<'a>
impl<'a> Unpin for PdfParser<'a>
impl<'a> UnsafeUnpin for PdfParser<'a>
impl<'a> UnwindSafe for PdfParser<'a>
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