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(ImageXObject)
Image XObject, for images
Tuple Fields of Image
0: ImageXObject
Form(Box<FormXObject>)
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
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for XObject
impl UnwindSafe for XObject
Blanket Implementations
Mutably borrows from an owned value. Read more