[−][src]Struct printpdf::types::pdf_metadata::PdfMetadata
This is a wrapper in order to keep shared data between the documents XMP metadata and the "Info" dictionary in sync
Fields
creation_date: OffsetDateTime
Creation date of the document
modification_date: OffsetDateTime
Modification date of the document
metadata_date: OffsetDateTime
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
Implementations
impl PdfMetadata
[src]
pub 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
pub fn into_obj(self) -> (Option<Object>, Object, Option<IccProfile>)
[src]
Consumes the metadata, returning the (Option<xmp_metadata>, document_info, icc_profile_stream).
Trait Implementations
impl Clone for PdfMetadata
[src]
pub fn clone(&self) -> PdfMetadata
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PdfMetadata
[src]
Auto Trait Implementations
impl RefUnwindSafe for PdfMetadata
[src]
impl Send for PdfMetadata
[src]
impl Sync for PdfMetadata
[src]
impl Unpin for PdfMetadata
[src]
impl UnwindSafe for PdfMetadata
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,