PDF::AP...XObject(3)

✨ PDF::API2::Resource::XObject β€” the manual, but make it cute ✨

okay bestie, pull up a chair 🫢 you've stumbled into PDF::API2::Resource::XObject(3), aka the base class for external objects. yes, base class β€” meaning all the other XObject-ish little guys inherit from this one. it's giving founding mother energy. πŸ‘‘


🌸 NAME 🌸

PDF::API2::Resource::XObject β€” the base class for external objects. that's the whole name, that's the whole job title. she's the blueprint, not the building. πŸŽ€


πŸ’… METHODS πŸ’…

two methods. only two. short and iconic, we love a concise queen.

  • $xobject = PDF::API2::Resource::XObject->new($pdf, $name) β€” creates an XObject resource. you hand it the $pdf and a $name, and boom πŸ’₯ you get back your very own $xobject. that's it, that's the constructor, no cap.
  • $type = $xobject->subtype($type) β€” get or set the Subtype of the XObject resource. call it with no argument and it gets the Subtype for you; pass a $type in and it sets it. one method, double duty, main character behavior honestly. ⭐
ngl, that's genuinely the entire page. some manpages are novels, this one is a haiku. and you know what? we respect it. πŸ™ˆ

a little sign-off for you, bestie πŸ¦‹ β€” this gorgeous little page came to you from perl v5.42.0, dated 2025-09-01, filed under the User Contributed Perl Documentation. she's a real one. go forth and construct your external objects. periodt. πŸ’–

πŸ“¦ where this page comes from
  • fedora 43: perl-PDF-API2 2.048-1.fc43 Β· LGPL-2.1-or-later AND (GPL-1.0-or-later OR Artistic-1.0-Perl) AND (MIT OR Artistic-1.0-Perl)
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms