| 1 |
README for Barcode::Code128 - Generate CODE 128 bar codes |
| 2 |
|
| 3 |
DESCRIPTION: |
| 4 |
Barcode::Code128 generates bar codes using the CODE 128 symbology. |
| 5 |
It can generate images in PNG or GIF format using the GD package, |
| 6 |
or it can generate a text string representing the barcode that you |
| 7 |
can render using some other technology if desired. |
| 8 |
|
| 9 |
The intended use of this module is to create a web page with a bar |
| 10 |
code on it, which can then be printed out and faxed or mailed to |
| 11 |
someone who will scan the bar code. The application which spurred |
| 12 |
its creation was an expense report tool, where the employee |
| 13 |
submitting the report would print out the web page and staple the |
| 14 |
receipts to it, and the Accounts Payable clerk would scan the bar |
| 15 |
code to indicate that the receipts were received. |
| 16 |
|
| 17 |
The default settings for this module produce a large image that |
| 18 |
can safely be FAXed several times and still scanned easily. If |
| 19 |
this requirement is not important you can generate smaller image |
| 20 |
using optional parameters. |
| 21 |
|
| 22 |
If you wish to generate images with this module you must also have |
| 23 |
the GD.pm module (written by Lincoln Stein, and available from |
| 24 |
CPAN) installed. Version 1.20 or higher of GD generates a PNG |
| 25 |
file, due to issues with the GIF patent. If you want to create a |
| 26 |
GIF, you must use version 1.19 or earlier of GD. However, most |
| 27 |
browsers have no trouble with PNG files. |
| 28 |
|
| 29 |
If the GD module is not present, you can still use the module, but |
| 30 |
you will not be able to use its functions for generating images. |
| 31 |
You can use the barcode() method to get a string of "#" and " " |
| 32 |
(hash and space) characters, and use your own image-generating |
| 33 |
routine with that as input. |
| 34 |
|
| 35 |
To use the the GD module, you will need to install it along with |
| 36 |
this module. You can obtain it from the CPAN (Comprehensive Perl |
| 37 |
Archive Network) repository of your choice under the directory |
| 38 |
"authors/id/LDS". Visit http://www.cpan.org/ for more information |
| 39 |
about CPAN. The GD home page is: |
| 40 |
http://stein.cshl.org/WWW/software/GD/GD.html |
| 41 |
|
| 42 |
EXAMPLE: |
| 43 |
use Barcode::Code128; |
| 44 |
$object = new Barcode::Code128; |
| 45 |
print "Content-Type: image/png\n\n"; |
| 46 |
$object->png('CODE 128'); |
| 47 |
|
| 48 |
AUTHOR: William R. Ward, [email protected] |
| 49 |
|
| 50 |
TERMS: This module is placed into the public domain. You are free to |
| 51 |
use, modify, or redistribute this module in any way for commercial |
| 52 |
or other uses. My only request is that if you change it, please |
| 53 |
submit copies of your changed code (or diffs) so that I can |
| 54 |
incorporate them into the version on CPAN. Also, in order to |
| 55 |
reduce the likelihood of confusion please do not distribute a |
| 56 |
modified version of this module unless you change the name first. |
| 57 |
|
| 58 |
HISTORY: |
| 59 |
See Changes file for history. |