An XObject is an object which can hold a set of instructions, these instructions are typically draw operations.
XObject are reusable, and can be applied to an Object by setting the xobject as the value of an appearance stream.
Creating an xobject is done via BaseDocument.createXObject
class XObject {
readonly contents: Object
readonly contentsForAppending: Object
readonly resources: Object
readonly pageMediaBox: Rect
readonly reference: Ref
}
Readonly property. Get the contents of the XObject as an Object
Readonly property.
Readonly property. Get the XObjects resources dictionary.
Readonly property. Get the XObject's media box. See Page for a diagram of page boxes.
Readonly property. Get the XObject's Ref