Struct lopdf_bugfix_19072017::Document [] [src]

pub struct Document {
    pub version: String,
    pub trailer: Dictionary,
    pub reference_table: Xref,
    pub objects: BTreeMap<ObjectId, Object>,
    pub streams: BTreeMap<u32, ObjectStream>,
    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.

The object streams which contains compressed objects.

Current maximum object id within the document.

Methods

impl Document
[src]

Create new PDF document.

Create new PDF document.

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

Traverse objects from trailer recursively, return all referenced object IDs.

Get catalog dictionary.

Get page numbers and corresponding object ids.

impl Document
[src]

Load PDF document from specified file path.

Load PDF document from arbitrary source

impl Document
[src]

Save PDF document to specified file path.

Save PDF to arbitrary target

impl Document
[src]

Create an object ID.

Add PDF object into document's object list.

impl Document
[src]

Change producer of document information dictionary.

Compress PDF stream objects.

Decompress PDF stream objects.

Delete pages.

Prune all unused objects.

Delete object by object ID.

Delete zero length stream objects.

Renumber objects, normally called after delete_unused_objects.

Trait Implementations

impl Debug for Document
[src]

Formats the value using the given formatter.