Struct pdf_writer::writers::FormXObject[][src]

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

Writer for an form XObject stream. PDF 1.1+.

This struct is created by PdfWriter::form_xobject.

Note that these have nothing to do with forms that have fields to fill out. Rather, they are a way to encapsulate and reuse content across the file.

Implementations

Write the /BBox attribute. Required.

This clips the form xobject to coordinates in its coordinate system.

Write the /Matrix attribute to map form space to user space.

Start writing the /Resources dictionary to specify the resources used by the XObject. This makes it independant of the parent content stream it is eventually invoked in. PDF 1.2+.

Start writing the /Group dictionary to set up transparency model parameters and let this XObject be known as a group. PDF 1.4+.

Start writing the /Ref dictionary to identify the page from an external document that the XObject is a reference to. PDF 1.4+.

Write the /Metadata attribute. PDF 1.4+.

Write the /LastModified attribute. PDF 1.3+.

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

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.