PDF::AP...t::Form(3)
β¨ NAME β¨
PDF::API2::Resource::XObject::Form β bestie, this is the base class for external form objects π (and yeah, your terminal is calling it PDF::AP...t::Form(3) because it ran out of room, but we know her full name π«Ά)
π METHODS π
$form = PDF::API2::Resource::XObject::Form->new($pdf)β okay so this literally just creates a form resource. That's the whole vibe. β¨($llx, $lly, $urx, $ury) = $form->bbox($llx, $lly, $urx, $ury)β get or set the coordinates of the form object's bounding box π¦ lowkey iconic that it does both, no cap. Pass the coords in and you're setting them; call it bare and it hands them back to you.$resource = $form->resource($type, $key)$form->resource($type, $key, $object, $force)β this one gets or adds a resource that the form's contents need, like aFont,XObject,ColorSpace, etc. π¨ the whole resource squad fr fr.
β οΈ heads up bestie: by default, an existing$keywill NOT be overwritten. she's protective like that π . Set$forceto override this behavior β that's your "move, i'm the main character now" button ππ₯
okay that's the whole page, you ate that πβ¨ mwah π
this lil masterpiece lives in perl v5.42.0, dated 2025-09-01, and goes by PDF::AP...t::Form(3) in the wild πΈ see you in the next one, bye babes π¦π
π¦ 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