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