pub struct Pdf { /* private fields */ }Expand description
A PDF file.
Implementations§
Source§impl Pdf
impl Pdf
Sourcepub fn new(data: PdfData) -> Result<Self, LoadPdfError>
pub fn new(data: PdfData) -> Result<Self, LoadPdfError>
Try to read the given PDF file.
Returns Err if it was unable to read it.
Sourcepub fn objects(&self) -> impl IntoIterator<Item = Object<'_>>
pub fn objects(&self) -> impl IntoIterator<Item = Object<'_>>
Return an iterator over all objects defined in the PDF file.
Sourcepub fn version(&self) -> PdfVersion
pub fn version(&self) -> PdfVersion
Return the version of the PDF file.
Auto Trait Implementations§
impl Freeze for Pdf
impl !RefUnwindSafe for Pdf
impl Send for Pdf
impl Sync for Pdf
impl Unpin for Pdf
impl !UnwindSafe for Pdf
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