Struct lopdf::Document [] [src]

pub struct Document {
    pub version: String,
    pub trailer: Dictionary,
    pub reference_table: Xref,
    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]

[src]

Create new PDF document.

[src]

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

[src]

Get mutable reference to object by object id, will recursively dereference a referenced object.

[src]

Get dictionary object by id.

[src]

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

[src]

Get catalog dictionary.

[src]

Get page numbers and corresponding object ids.

[src]

Get content stream object ids of a page.

[src]

Get content of a page.

[src]

Get fonts used by a page.

[src]

[src]

[src]

impl Document
[src]

[src]

Load PDF document from specified file path.

[src]

Load PDF document from arbitrary source

impl Document
[src]

[src]

Save PDF document to specified file path.

[src]

Save PDF to arbitrary target

impl Document
[src]

[src]

Create new PDF document with version.

[src]

Create an object ID.

[src]

Add PDF object into document's object list.

impl Document
[src]

[src]

Change producer of document information dictionary.

[src]

Compress PDF stream objects.

[src]

Decompress PDF stream objects.

[src]

Delete pages.

[src]

Prune all unused objects.

[src]

Delete object by object ID.

[src]

Delete zero length stream objects.

[src]

Renumber objects, normally called after delete_unused_objects.

[src]

[src]

[src]

[src]

Trait Implementations

impl Debug for Document
[src]

[src]

Formats the value using the given formatter.

impl Clone for Document
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more