pub trait DocumentFile {
// Required methods
fn pages(&self) -> u32;
fn author(&self) -> Option<String>;
fn title(&self) -> Option<String>;
fn has_javascript(&self) -> bool;
fn has_form(&self) -> bool;
fn creation_time(&self) -> Option<DateTime<Utc>>;
fn modification_time(&self) -> Option<DateTime<Utc>>;
}
Expand description
Common functions for document file types
Required Methods§
Author of the document
Sourcefn has_javascript(&self) -> bool
fn has_javascript(&self) -> bool
If the document has Javascript (PDF)
Sourcefn creation_time(&self) -> Option<DateTime<Utc>>
fn creation_time(&self) -> Option<DateTime<Utc>>
Creation timestamp of the document, if found
Sourcefn modification_time(&self) -> Option<DateTime<Utc>>
fn modification_time(&self) -> Option<DateTime<Utc>>
Modification timestamp of the document, if found