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

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

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

Form XObject, for PDF forms

PostScript(PostScriptXObject)

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

Trait Implementations

impl Clone for XObject[src]

impl Debug for XObject[src]

impl Into<Object> for XObject[src]

Auto Trait Implementations

impl RefUnwindSafe for XObject

impl Send for XObject

impl Sync for XObject

impl Unpin for XObject

impl UnwindSafe for XObject

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.