PDF::Bu...:XObject(3)

✨ NAME ✨

PDF::Builder::Resource::XObject β€” the base class for external objects, bestie πŸ’–

This one inherits from PDF::Builder::Resource, so all that resource energy comes along for the ride. It's literally the parent vibe for XObjects, iykyk πŸ¦‹


🌸 METHODS 🌸

πŸ’… new

$xobject = PDF::Builder::Resource::XObject->new($pdf, $name)

okay so this is the constructor, and it does exactly what it says on the tin: it creates an XObject resource ✨ You hand it a $pdf and a $name, and boom β€” you got yourself an $xobject. Iconic behavior, no notes πŸŽ€

🫢 subtype

$type = $xobject->subtype($type)

Get or set the Subtype of the XObject resource β€” it's giving dual-purpose, main character energy πŸ‘‘ Pass a $type and you're setting it; call it and you get the $type back. Versatile fr fr πŸ’œ


User Contributed Perl Documentation πŸ¦‹ perl v5.42.0 🌈 2026-01-17 β€” that's the tea, bestie, go forth and XObject responsibly πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from