Struct printpdf::types::pdf_document::PdfDocumentReference [] [src]

pub struct PdfDocumentReference { /* fields omitted */ }

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

Methods

impl PdfDocumentReference
[src]

[src]

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

[src]

Set the trapping of the document

[src]

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

[src]

Set the version of the document

[src]

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

[src]

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

[src]

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

[src]

Add a font from a font stream

[src]

Add a built-in font to the document

[src]

Returns the page (for inserting content)

[src]

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

[src]

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

[src]

Checks for invalid settings in the document

[src]

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

[src]

Save PDF Document, writing the contents to the target