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 custom: HashMap<Vec<u8>, Object>,
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’)
custom: HashMap<Vec<u8>, Object>Custom Info dictionary entries that are not part of the standard set above.
Producers commonly use the Info dictionary to attach application-specific
metadata (for example, Microsoft Information Protection labels stored as
MSIP_Label_{GUID}_{Property} keys). Such entries used to be discarded
by the metadata-only loader; they are now preserved here as raw Object
values so callers can inspect or decode them as needed.
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more