Struct printpdf::types::pdf_metadata::PdfMetadata
[−]
[src]
pub struct PdfMetadata { pub creation_date: DateTime<Local>, pub modification_date: DateTime<Local>, pub metadata_date: DateTime<Local>, pub document_title: String, pub trapping: bool, pub document_version: u32, pub conformance: PdfConformance, pub xmp_metadata: XmpMetadata, pub document_info: DocumentInfo, pub target_icc_profile: Option<IccProfile>, }
This is a wrapper in order to keep shared data between the documents XMP metadata and the "Info" dictionary in sync
Fields
creation_date: DateTime<Local>
Creation date of the document
modification_date: DateTime<Local>
Modification date of the document
metadata_date: DateTime<Local>
Creation date of the metadata
document_title: String
PDF document title
trapping: bool
Is the document trapped?
document_version: u32
PDF document version
conformance: PdfConformance
PDF Standard
xmp_metadata: XmpMetadata
XMP Metadata. Is ignored on save if the PDF conformance does not allow XMP
document_info: DocumentInfo
PDF Info dictionary. Contains metadata for this document
target_icc_profile: Option<IccProfile>
Target color profile
Methods
impl PdfMetadata
[src]
fn new<S>(
title: S,
document_version: u32,
trapping: bool,
conformance: PdfConformance
) -> Self where
S: Into<String>,
[src]
title: S,
document_version: u32,
trapping: bool,
conformance: PdfConformance
) -> Self where
S: Into<String>,
Creates a new metadat object
fn into_obj(self) -> (Option<Object>, Object, Option<IccProfile>)
[src]
Consumes the metadata, returning the (Option
Trait Implementations
impl Debug for PdfMetadata
[src]
impl Clone for PdfMetadata
[src]
fn clone(&self) -> PdfMetadata
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more