Enum printpdf::types::plugins::graphics::xobject::XObject[][src]

pub enum XObject {
    Image(ImageXObject),
    Form(Box<FormXObject>),
    PostScript(PostScriptXObject),
}
Expand description

External object that gets reference outside the PDF content stream Gets constructed similar to the ExtGState, then inserted into the /XObject dictionary on the page. You can instantiate XObjects with the /Do operator. The layer.add_xobject() (or better yet, the layer.add_image(), layer.add_form()) methods will do this for you.

Variants

Image XObject, for images

Tuple Fields of Image

0: ImageXObject

Form XObject, for PDF forms

Tuple Fields of Form

0: Box<FormXObject>
PostScript(PostScriptXObject)

Embedded PostScript XObject, for legacy applications You can embed PostScript in a PDF, it is not recommended

Tuple Fields of PostScript

0: PostScriptXObject

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.