PDF::Bu...esource(3)
π NAME π
PDF::Builder::Resource β bestie, it's the base class for PDF resources β¨ it's giving founder energy, it's the blueprint every other resource class looks up to π
Also, lowkey important: it inherits from PDF::Builder::Basic::PDF::Dict 𧬠so all that Dict goodness is in the bloodline, no cap.
πΈ METHODS πΈ
π new
$resource = PDF::Builder::Resource->new($pdf, $name)
Returns a resource object π that's literally it, that's the whole job. You hand it the $pdf and a $name, you get back a shiny new resource object. iconic behavior honestly π«Ά
π¦ name
$name = $resource->name() # Get
$resource->name($name) # Set
Get or set the name of the resource β¨ call it with no args and it hands you the $name back like "here u go bestie π" β pass a $name in and it sets it instead. one method, two moods, main character energy fr fr π
okay that's the whole page, and yes it's short but she said everything she needed to say π
signing off from perl v5.42.0, dated 2026-01-17 β this was PDF::Bu...esource(3), mwah, go forth and resource responsibly πβ¨π
π¦ 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