pub struct PdfDocumentReference { /* private fields */ }
Expand description

Marker struct for a document. Used to make the API a bit nicer. It simply calls PdfDocument functions.

Implementations§

Changes the title on both the document info dictionary as well as the metadata

Set the trapping of the document

Sets the document ID (for comparing two PDF documents for equality)

Set the version of the document

Changes the conformance of this document. It is recommended to call check_for_errors() after changing it.

Sets the modification date on the document. Intended to be used when reading documents that already have a modification date.

Create a new pdf page and returns the index of the page

Add a font from a font stream

Add a built-in font to the document

Returns the page (for inserting content)

Returns a direct reference (object ID) to the font from an indirect reference (postscript name)

Drops the PDFDocument, returning the inner lopdf::Document. Document may be only half-written, use only in extreme cases

Checks for invalid settings in the document

Tries to match the document to the given conformance. Errors only on an unrecoverable error.

Save PDF Document, writing the contents to the target

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sets value as a parameter of self.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.