pub struct TilingPattern<'a> { /* private fields */ }
Expand description

Writer for a tiling pattern stream.

This struct is created by PdfWriter::tiling_pattern.

Implementations

Write the /PaintType attribute.

Sets whether to use external or stream color. Required.

Write the /TilingType attribute.

Sets how to stretch and space the pattern. Required.

Write the /BBox attribute.

Sets the bounding box of the pattern in the pattern’s coordinate system. Required.

Write the /XStep attribute.

Sets the horizontal spacing between pattern cells. Required.

Panics if x_step is zero.

Write the /YStep attribute.

Sets the vertical spacing between pattern cells. Required.

Panics if y_step is zero.

Start writing the /Resources dictionary.

Sets the resources used by the pattern. Required.

Write the /Matrix attribute.

Maps the pattern coordinate system to the parent content stream coordinates. The default is the identity matrix.

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

Write the /Filter attribute.

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.

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.

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.