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