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$pdfand 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$typein 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