DocumentFile

Trait DocumentFile 

Source
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§

Source

fn pages(&self) -> u32

Number of pages

Source

fn author(&self) -> Option<String>

Author of the document

Source

fn title(&self) -> Option<String>

Title of the document

Source

fn has_javascript(&self) -> bool

If the document has Javascript (PDF)

Source

fn has_form(&self) -> bool

If the document has a fillable form (PDF)

Source

fn creation_time(&self) -> Option<DateTime<Utc>>

Creation timestamp of the document, if found

Source

fn modification_time(&self) -> Option<DateTime<Utc>>

Modification timestamp of the document, if found

Implementors§

Source§

impl DocumentFile for Office95<'_>

Available on crate feature office95 only.
Source§

impl DocumentFile for PDF<'_>

Available on crate feature pdf only.
Source§

impl DocumentFile for Rtf<'_>

Available on crate feature rtf only.