METHODS $xobject = PDF::API2::Resource::XObject->new($pdf, $name) Creates an XObject resource. $type = $xobject->subtype($type) Get or set the Subtype of the XObject resource.