PDF::Bu...ct::Form(3)
β¨ NAME β¨
okay so bestie, welcome to PDF::Bu...ct::Form(3) π β yes the header cuts the name off because it's long, but it's the page for PDF::Builder::Resource::XObject::Form, the base class for external form objects. She's part of the User Contributed Perl Documentation collection, iykyk.
and the family tree? she inherits from PDF::Builder::Resource::XObject. that's the lore. πΈ
π¦ METHODS π¦
π new
$form = PDF::Builder::Resource::XObject::Form->new($pdf)
creates a form resource. that's it, that's the whole job. new form, brand new, main character energy π
π bbox
($llx, $lly, $urx, $ury) = $form->bbox($llx, $lly, $urx, $ury)
get or set the coordinates of the form object's bounding box. so like, $llx, $lly, $urx, $ury β lower-left x, lower-left y, upper-right x, upper-right y β the four corners of where this form lives. ask for them, or tell her what they should be, both work π
π resource
$resource = $form->resource($type, $key)
$form->resource($type, $key, $object, $force)
get or add a resource that the form's contents need β think a Font, an XObject, a ColorSpace, etc. the little support squad the form can't function without fr fr π«Ά
β οΈ heads up: by default, an existing$keywill not be overwritten. she's loyal like that. if you really wanna override that behavior, set$forceβ and then it's on you, bestie π
and that's the whole page! no cap, that's all she wrote π
perl v5.42.0 Β· 2026-01-17 β mwah, dated and versioned, iconic behavior, periodt πβ¨π
π¦ where this page comes from
- fedora 44: perl-PDF-Builder 3.028-2.fc44 Β· LGPL-2.1-or-later AND LGPL-2.1-only AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms