pub struct PdfMetadata {
pub title: Option<String>,
pub author: Option<String>,
pub subject: Option<String>,
pub keywords: Option<String>,
pub creator: Option<String>,
pub producer: Option<String>,
pub creation_date: Option<String>,
pub modification_date: Option<String>,
pub page_count: u32,
pub version: String,
}Expand description
PDF metadata extracted without loading the entire document. This is useful for quickly getting basic information about large PDFs.
Fields§
§title: Option<String>Document title from Info dictionary
Document author from Info dictionary
subject: Option<String>Document subject from Info dictionary
keywords: Option<String>Document keywords from Info dictionary
creator: Option<String>Application that created the document
producer: Option<String>Application that produced the document
creation_date: Option<String>Document creation date (PDF date format: D:YYYYMMDDHHmmSSOHH’mm’)
modification_date: Option<String>Document modification date (PDF date format: D:YYYYMMDDHHmmSSOHH’mm’)
page_count: u32Number of pages in the document
version: StringPDF version
Trait Implementations§
Source§impl Clone for PdfMetadata
impl Clone for PdfMetadata
Source§fn clone(&self) -> PdfMetadata
fn clone(&self) -> PdfMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PdfMetadata
impl RefUnwindSafe for PdfMetadata
impl Send for PdfMetadata
impl Sync for PdfMetadata
impl Unpin for PdfMetadata
impl UnwindSafe for PdfMetadata
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