Struct pdf_writer::writers::Resources[][src]

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

Writer for a resource dictionary.

This struct is created by Pages::resources, Page::resources, FormXObject::resources, and TilingPattern::resources.

Implementations

Start writing the /XObject dictionary.

Relevant types:

Start writing the /Font dictionary.

Relevant types:

Start writing the /ColorSpace dictionary. PDF 1.1+.

Relevant types:

Start writing the /Pattern dictionary. PDF 1.2+.

Relevant types:

Start writing the /Shading dictionary. PDF 1.3+.

Relevant types:

Start writing the /ExtGState dictionary. PDF 1.2+.

Relevant types:

Set the /ProcSet attribute.

This defines what procedure sets are sent to an output device when printing the file as PostScript. The attribute is only used for PDFs with versions below 1.4.

Set the /ProcSet attribute to all available procedure sets.

The PDF 1.7 specification recommends that modern PDFs either omit the attribute or specify all available procedure sets, as this function does.

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.