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

NAME

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

SYNOPSIS

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

DESCRIPTION

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

AUTHOR

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

SEE ALSO

76       GD::Barcode
77
78
79
80perl v5.34.0                      2021-07-22                   Barcode::NW7(3)
Impressum