GD::Barcode::ITF(3pm)

πŸ’– GD::Barcode::ITF β€” bestie, let's make a barcode πŸ’–

okay so welcome to the GD::Barcode::ITF page from the User Contributed Perl Documentation, running on perl v5.40.1 ✨

GD::Barcode::ITF β€” Create ITF(Interleaved2of5) barcode image with GD πŸŽ€


✨ NAME ✨

GD::Barcode::ITF β€” Create ITF(Interleaved2of5) barcode image with GD πŸ’…


🌸 SYNOPSIS 🌸

ex. CGI 🫢

use GD::Barcode::ITF;
binmode(STDOUT);
print "Content-Type: image/png\n\n";
print GD::Barcode::ITF->new('1234567890')->plot->png;

with Error Check πŸ‘€

my $oGdBar = GD::Barcode::ITF->new('A12345678');
die $GD::Barcode::ITF::errStr unless($oGdBar);        #Invalid Characters
$oGdBar->plot->png;

πŸ¦‹ DESCRIPTION πŸ¦‹

GD::Barcode::ITF is a subclass of GD::Barcode and allows you to create ITF barcode image with GD. literally that's the whole vibe, bestie πŸ’–

πŸŽ€ new

$oGdBar = GD::Barcode::ITF->new($sTxt);

Constructor!! It Creates a GD::Barcode::ITF object for $sTxt. And $sTxt has numeric characters([0-9]) β€” so like, digits only, no cap πŸ“

πŸŽ€ plot()

$oGd = $oGdBar->plot([Height => $iHeight, NoText => 0 | 1]);

creates GD object with barcode image for the $sTxt specified at new method. $iHeight is height of the image. If NoText is 1, the image has no text image of $sTxt. iconic honestly ✨

ex.

my $oGdB = GD::Barcode::ITF->new('12345678');
my $oGD = $oGdB->plot(NoText=>1, Height => 20);
# $sGD is a GD image with Height=>20 pixels, with no text.

πŸŽ€ barcode()

$sPtn = $oGdBar->barcode();

returns a barcode pattern in string with '1' and '0'. '1' means black, '0' means white. the way that it's literally just ones and zeros πŸ‘‘

ex.

my $oGdB = GD::Barcode::ITF->new('12345678');
my $sPtn = $oGdB->barcode();

πŸŽ€ $errStr

$GD::Barcode::ITF::errStr

has error message. so if something goes sideways, check here bestie 😭

πŸŽ€ $text

$oGdBar->{$text}

has barcode text based on $sTxt specified in new method πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

Kawai Takanori GCD00051@nifty.ne.jp πŸ’Œ


The GD::Barocde::ITF module is Copyright (c) 2000 Kawai Takanori. Japan. All rights reserved.

You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.

(yes the Barocde spelling is right there in the original, we don't fix it, we respect it πŸ’…)


🌈 SEE ALSO 🌈

GD::Barcode


fr fr that's the whole page, no notes, go forth and barcode πŸŽ€

and that's a wrap on this one, bestie!! this page is from perl v5.40.1, dated 2025-10-27, and it lives under the name GD::Barcode::ITF(3pm) 🫢✨ slay πŸ’–

πŸ“¦ where this page comes from