PDF::AP...code128(3)

✨ NAME ✨

PDF::API2::Resource::XObject::Form::BarCode::code128 β€” it's giving Code 128 and EAN-128 barcode support πŸ’–

okay bestie, if you've ever been like "I need my Perl PDF to spit out an actual, scannable barcode," this is the module that has your back. lowkey iconic. πŸŽ€


🫢 METHODS 🫢

new πŸ’…

$res = PDF::API2::Resource::XObject::Form::BarCode::code128->new($pdf, %options)

So you call this and boom β€” you get a code128 object back. That's the whole vibe. ✨

And here's the tea: if you wanna encode in EAN128 mode instead, you just pass in -ean. that's it, that's the flag. no cap. πŸ¦‹

ngl, -ean is doing a LOT of heavy lifting in one tiny option name and I respect it fr fr πŸ‘‘

perl v5.42.0 🌸 2025-09-01 β€” mwah, that's the version and date, go off you gorgeous little release πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from
  • fedora 43: perl-PDF-API2 2.048-1.fc43 Β· LGPL-2.1-or-later AND (GPL-1.0-or-later OR Artistic-1.0-Perl) AND (MIT OR Artistic-1.0-Perl)
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms