1Barcode::COOP2of5(3)  User Contributed Perl Documentation Barcode::COOP2of5(3)
2
3
4

NAME

6       GD::Barcode::COOP2of5 - Create COOP2of5 barcode image with GD
7

SYNOPSIS

9       ex. CGI
10
11         use GD::Barcode::COOP2of5;
12         binmode(STDOUT);
13         print "Content-Type: image/png\n\n";
14         print GD::Barcode::COOP2of5->new('1234567890')->plot->png;
15
16       with Error Check
17
18         my $oGdBar = GD::Barcode::COOP2of5->new('A12345678');
19         die $GD::Barcode::COOP2of5::errStr unless($oGdBar);   #Invalid Characters
20         $oGdBar->plot->png;
21

DESCRIPTION

23       GD::Barcode::COOP2of5 is a subclass of GD::Barcode and allows you to
24       create COOP2of5 barcode image with GD.
25
26       new
27
28       $oGdBar = GD::Barcode::COOP2of5->new($sTxt);
29
30       Constructor.  Creates a GD::Barcode::COOP2of5 object for $sTxt.  $sTxt
31       has numeric characters([0-9]).
32
33       plot()
34
35       $oGd = $oGdBar->plot([Height => $iHeight, NoText => 0  1]);
36
37       creates GD object with barcode image for the $sTxt specified at new
38       method.  $iHeight is height of the image. If NoText is 1, the image has
39       no text image of $sTxt.
40
41        ex.
42         my $oGdB = GD::Barcode::COOP2of5->new('12345678');
43         my $oGD = $oGdB->plot(NoText=>1, Height => 20);
44         # $sGD is a GD image with Height=>20 pixels, with no text.
45
46       barcode()
47
48       $sPtn = $oGdBar->barcode();
49
50       returns a barcode pattern in string with '1' and '0'.  '1' means black,
51       '0' means white.
52
53        ex.
54         my $oGdB = GD::Barcode::COOP2of5->new('12345678');
55         my $sPtn = $oGdB->barcode();
56
57       $errStr
58
59       $GD::Barcode::COOP2of5::errStr
60
61       has error message.
62
63       $text
64
65       $oGdBar->{$text}
66
67       has barcode text based on $sTxt specified in new method.
68

AUTHOR

70       Kawai Takanori GCD00051@nifty.ne.jp
71
73       The GD::Barocde::COOP2of5 module is Copyright (c) 2000 Kawai Takanori.
74       Japan.  All rights reserved.
75
76       You may distribute under the terms of either the GNU General Public
77       License or the Artistic License, as specified in the Perl README file.
78

SEE ALSO

80       GD::Barcode
81
82
83
84perl v5.8.8                       2003-05-29              Barcode::COOP2of5(3)
Impressum