PDF::Bu...BarCode(3)
β¨ PDF::Builder::Resource::XObject::Form::BarCode β¨
okay so bestie, this is the User Contributed Perl Documentation page for PDF::Builder::Resource::XObject::Form::BarCode π it lives in the PDF::Builder family and it's giving base class energy for one-dimensional barcodes. like, it's the blueprint the other barcode classes build on, not the glow-up itself. iykyk π
πΈ NAME πΈ
PDF::Builder::Resource::XObject::Form::BarCode β Base class for one-dimensional barcodes π¦
and the family tree moment: it inherits from PDF::Builder::Resource::XObject::Form::Hybrid π everything Hybrid can do, this one can do too, periodt.
π METHODS π
π«Ά new
$barcode = PDF::Builder::Resource::XObject::Form::BarCode->new($pdf, %options)
Creates a barcode form resource β¨ you hand it the $pdf you're working with plus your %options, and boom, you get back a barcode form resource. main character creation moment fr fr π
π width
$width = $barcode->width()
Returns the width of the bar code π that's it, that's the whole thing, no cap.
β height
$height = $barcode->height()
Returns the height of the bar code π short king of a method but it does exactly what it says, obsessed. π
reminder bestie: this is the base class, so if you're out here trying to make an actual scannable barcode, you probably want one of the subclasses that fill in the actual encoding vibe. no guessing though, that's just what "base class" means. π
perl v5.42.0 π and it was dated 2026-01-17, so that's the source and version flex right there β mwah, bye bestie, go read some actual barcode docs πβ¨π
π¦ 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