pub struct DocumentMetadata {
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<PdfDate>,
pub mod_date: Option<PdfDate>,
pub trapped: Option<TrappedFlag>,
pub custom: HashMap<String, String>,
pub xmp_xml: Option<String>,
}Expand description
Information about a PDF document, drawn from the trailer’s /Info dict
and the catalog’s /Metadata stream.
All fields are optional — a PDF may have no /Info dict, or a partial
one. custom collects any non-standard /Info keys for callers that
need to inspect them (e.g. preservation tools).
Fields§
§title: Option<String>/Info /Title.
/Info /Author.
subject: Option<String>/Info /Subject.
keywords: Option<String>/Info /Keywords.
creator: Option<String>/Info /Creator — the application that authored the source document.
producer: Option<String>/Info /Producer — the application that produced the PDF.
creation_date: Option<PdfDate>/Info /CreationDate, parsed from PDF date format.
mod_date: Option<PdfDate>/Info /ModDate, parsed from PDF date format.
trapped: Option<TrappedFlag>/Info /Trapped — whether the document has been pre-trapped for press.
custom: HashMap<String, String>Non-standard /Info entries, decoded as strings where possible.
xmp_xml: Option<String>Raw XMP metadata XML from the catalog’s /Metadata stream, if present.
Trait Implementations§
Source§impl Clone for DocumentMetadata
impl Clone for DocumentMetadata
Source§fn clone(&self) -> DocumentMetadata
fn clone(&self) -> DocumentMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DocumentMetadata
impl Debug for DocumentMetadata
Source§impl Default for DocumentMetadata
impl Default for DocumentMetadata
Source§fn default() -> DocumentMetadata
fn default() -> DocumentMetadata
Auto Trait Implementations§
impl Freeze for DocumentMetadata
impl RefUnwindSafe for DocumentMetadata
impl Send for DocumentMetadata
impl Sync for DocumentMetadata
impl Unpin for DocumentMetadata
impl UnsafeUnpin for DocumentMetadata
impl UnwindSafe for DocumentMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more