pub struct DocInfoRecord {
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<DocDate>,
pub mod_date: Option<DocDate>,
pub trapped: Option<TrappedState>,
}Expand description
/DOCINFO payload — Option<String> for every key so absent entries
don’t overwrite values from another producer (or the device’s
auto-generated defaults). creation_date and mod_date accept either
a parsed PdfDate or a passthrough string the writer emits verbatim.
Fields§
§title: Option<String>§subject: Option<String>§keywords: Option<String>§creator: Option<String>§producer: Option<String>§creation_date: Option<DocDate>§mod_date: Option<DocDate>§trapped: Option<TrappedState>Trapped: PDF spec requires /True, /False, or /Unknown.
Implementations§
Source§impl DocInfoRecord
impl DocInfoRecord
Sourcepub fn creation_date_string(&self) -> Option<String>
pub fn creation_date_string(&self) -> Option<String>
Return the /CreationDate value formatted as a PDF date string,
or None when no creation date is set.
Sourcepub fn mod_date_string(&self) -> Option<String>
pub fn mod_date_string(&self) -> Option<String>
Return the /ModDate value formatted as a PDF date string, or
None when no mod date is set.
Trait Implementations§
Source§impl Clone for DocInfoRecord
impl Clone for DocInfoRecord
Source§fn clone(&self) -> DocInfoRecord
fn clone(&self) -> DocInfoRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DocInfoRecord
impl Debug for DocInfoRecord
Source§impl Default for DocInfoRecord
impl Default for DocInfoRecord
Source§fn default() -> DocInfoRecord
fn default() -> DocInfoRecord
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DocInfoRecord
impl RefUnwindSafe for DocInfoRecord
impl Send for DocInfoRecord
impl Sync for DocInfoRecord
impl Unpin for DocInfoRecord
impl UnsafeUnpin for DocInfoRecord
impl UnwindSafe for DocInfoRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more