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 π
β COPYRIGHT β
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
- ubuntu resolute: libgd-barcode-perl 2.02-1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- ubuntu stonking: libgd-barcode-perl 2.02-1 Β· GPL-1.0-or-later 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