[][src]Struct printpdf::types::pdf_metadata::PdfMetadata

pub struct PdfMetadata {
    pub creation_date: Tm,
    pub modification_date: Tm,
    pub metadata_date: Tm,
    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: Tm

Creation date of the document

modification_date: Tm

Modification date of the document

metadata_date: Tm

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]

pub fn new<S>(
    title: S,
    document_version: u32,
    trapping: bool,
    conformance: PdfConformance
) -> Self where
    S: Into<String>, 
[src]

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]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for PdfMetadata[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.