Image_Barcode
[ class tree: Image_Barcode ] [ index: Image_Barcode ] [ all elements ]

File: code128.php

Source Location: /Image_Barcode-1.1.3/Image/Barcode/code128.php

Classes:

Image_Barcode_code128
Image_Barcode class

Page Details:

Image_Barcode_code128 class

Renders Code128 barcodes Code128 is a high density encoding for alphanumeric strings. This module prints the Code128B representation of the most common ASCII characters (32 to 134).

These are the components of a Code128 Bar code:

  • 10 Unit Quiet Zone
  • 6 Unit Start Character
  • (n * 6) Unit Message
  • 6 Unit "Check Digit" Character
  • 7 Unit Stop Character
  • 10 Unit Quiet Zone
I originally wrote this algorithm in Visual Basic 6 for a Rapid Software Development class, where we printed Code128 B bar codes to read using Cue Cat bar code readers. I rewrote the algorithm using PHP for inclusion in the PEAR Image_Barcode project.

The Code128B bar codes produced by the algorithm have been validated using my trusty Cue-Cat bar code reader.

PHP versions 4

LICENSE: This source file is subject to version 3.0 of the PHP license that is available through the world-wide-web at the following URI: http://www.php.net/license/3_0.txt. If you did not receive a copy of the PHP License and are unable to obtain it through the web, please send a note to license@php.net so we can mail you a copy immediately.

Includes:

require_once("Image/Barcode.php") [line 45]

Documentation generated on Sat, 24 Mar 2012 06:00:03 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.