PDF::Bu...orSpace(3)
β¨ PDF::Builder::Resource::ColorSpace β¨
okay bestie, welcome to PDF::Builder::Resource::ColorSpace(3) π this is the base class for all the PDF color spaces β like, every other color space is a lil baby that inherits from this one. it's giving founder energy. π
Inherits from PDF::Builder::Basic::PDF::Array π«Ά
so yes, it's literally an Array underneath. it ate and left no crumbs. β¨
πΈ METHODS πΈ
π new
$cs = PDF::Builder::Resource::ColorSpace->new($pdf, $key, %opts)
returns a brand new colorspace object π this is the base class for all colorspaces</u>, so it's the blueprint β the main character, if you will. every colorspace starts its journey right here. π
π¦ name
$name = $res->name($name) # Set
$name = $res->name() # Get
getter AND setter, we love a versatile queen ππ pass in a $name and it sets the Name of the resource; call it with no args and it hands you the Name of the resource back. that's it, that's the whole vibe. no cap. β¨
π§ param
@param = $cs->param(@param)
returns properly formatted color-parameters based on the colorspace π like it takes your params, and it formats them the way that specific colorspace wants them. so fetch. π
π heads up bestie: the manual name here is PDF::Bu...orSpace (yes, it's truncated in the actual header, not a typo of mine, don't @ me π).
and that's the whole page, fr fr. no plot twist, just clean inheritance and three methods. slay. π
perl v5.42.0 Β· 2026-01-17 Β· mwah, that's the source and date, love u, bye bestie π πβ¨
π¦ 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