pub struct Metadata {
pub title: Option<String>,
pub creator: Option<String>,
pub producer: Option<String>,
pub date: Option<Timestamp>,
pub author: Option<String>,
pub subject: Option<String>,
pub keywords: Option<String>,
pub modified: Option<Timestamp>,
pub trapped: Option<Trapped>,
pub pdf_info: Option<Vec<(String, Vec<u8>)>>,
pub svg: SvgMetadata,
pub png: PngMetadata,
}Expand description
Metadata written into a saved document; None leaves an entry out.
Every vector format writes the title, creator and date; svg holds
what only SVG documents record, and the other entries are keys of the
PDF document information dictionary (SVG records the keywords too).
PNG files record the text entries of png alone.
Fields§
§title: Option<String>Document title.
creator: Option<String>The application that made the document.
producer: Option<String>The library that wrote it (PDF Producer).
date: Option<Timestamp>Creation date.
Who made the document (PDF Author).
subject: Option<String>What the document is about (PDF Subject).
keywords: Option<String>Keywords (PDF Keywords, the SVG subject).
modified: Option<Timestamp>When the document was last changed (PDF ModDate).
trapped: Option<Trapped>Whether the document is trapped (PDF Trapped).
pdf_info: Option<Vec<(String, Vec<u8>)>>A PDF document’s information dictionary as the program wrote it,
in place of the entries above: each key with its value written as
a PDF object (matplotlib’s pdfRepr of the dictionary
_create_pdf_info_dict makes, keys it warns about included).
svg: SvgMetadataThe further Dublin Core entries of SVG documents.
png: PngMetadataThe text entries of PNG files.
Implementations§
Trait Implementations§
Source§impl Default for Metadata
impl Default for Metadata
Source§fn default() -> Self
fn default() -> Self
pltrs as creator and producer, dated by
Timestamp::source_date_or_now; the PNG Software entry
(PngMetadata::default).