Struct pdf_writer::writers::Catalog[][src]

pub struct Catalog<'a> { /* fields omitted */ }
Expand description

Writer for a document catalog dictionary.

This struct is created by PdfWriter::catalog.

Implementations

Write the /Pages attribute pointing to the root page tree.

Write the /PageLayout attribute to determine how the viewer will display the document’s pages.

Write the /PageMode attribute to set which chrome elements the viewer should show.

Write the /Outlines attribute pointing to the root outline dictionary.

Write the /Dests attribute pointing to a named destinations dictionary. PDF 1.1+.

Start writing the /ViewerPreferences dictionary. PDF 1.2+.

Write the /PageLabels attribute to specify the page labels. PDF 1.3+.

Write the /Lang attribute to specify the language of the document as a RFC 3066 language tag. PDF 1.4+.

Methods from Deref<Target = Dict<'a>>

The number of written pairs.

Start writing a pair with an arbitrary value.

Write a pair with a primitive value.

This is a shorthand for dict.insert(key).primitive(value).

Write a sequence of pairs with primitive values.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Start writing the object.

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

Performs the conversion.

Performs the conversion.

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.