pub struct DocumentMetadata {
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 mod_date: Option<String>,
}Expand description
Document-level metadata extracted from the PDF /Info dictionary.
All fields are optional since PDFs may omit the /Info dictionary entirely or include only a subset of fields.
§PDF Date Format
Date fields (creation_date, mod_date) are stored as raw PDF date
strings in the format D:YYYYMMDDHHmmSSOHH'mm'. Use
[DocumentMetadata::parse_pdf_date] to extract components.
Fields§
§title: Option<String>Document title.
Document author.
subject: Option<String>Document subject / description.
keywords: Option<String>Keywords associated with the document.
creator: Option<String>Application that created the original document.
producer: Option<String>Application that produced the PDF.
creation_date: Option<String>Date the document was created (raw PDF date string).
mod_date: Option<String>Date the document was last modified (raw PDF date string).
Implementations§
Trait Implementations§
Source§impl Clone for DocumentMetadata
impl Clone for DocumentMetadata
Source§fn clone(&self) -> DocumentMetadata
fn clone(&self) -> DocumentMetadata
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 moreSource§impl Debug for DocumentMetadata
impl Debug for DocumentMetadata
Source§impl Default for DocumentMetadata
impl Default for DocumentMetadata
Source§fn default() -> DocumentMetadata
fn default() -> DocumentMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for DocumentMetadata
impl PartialEq for DocumentMetadata
impl StructuralPartialEq for DocumentMetadata
Auto Trait Implementations§
impl Freeze for DocumentMetadata
impl RefUnwindSafe for DocumentMetadata
impl Send for DocumentMetadata
impl Sync for DocumentMetadata
impl Unpin for DocumentMetadata
impl UnsafeUnpin for DocumentMetadata
impl UnwindSafe for DocumentMetadata
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