Struct lopdf::Document [] [src]

pub struct Document {
    pub version: String,
    pub trailer: Dictionary,
    pub reference_table: BTreeMap<u32, (u16, u64)>,
    pub objects: BTreeMap<ObjectId, Object>,
    pub max_id: u32,
}

PDF document.

Fields

The version of the PDF specification to which the file conforms.

The trailer gives the location of the cross-reference table and of certain special objects.

The cross-reference table contains locations of the indirect objects.

The objects that make up the document contained in the file.

Current maximum object id within the document.

Methods

impl Document
[src]

Create new PDF document.

Get object by object id, will recursively dereference a referenced object.

impl Document
[src]

Load PDF document from specified file path.

impl Document
[src]

Save PDF document to specified file path.

impl Document
[src]

Add PDF object into document's object list.

impl Document
[src]

Compress PDF stream objects.

Decompress PDF stream objects.