dev.obliquid.com: general
[ class tree: general ] [ index: general ] [ all elements ]

Procedural File: barcode.php

Source Location: Program_Root/classes/general/barcode.php



Classes:

barcode
Barcode class


Page Details:

This class can be used to create barcode-images in the following formats:

UPC-A /^[0-9]{12}$/ UPC-E /^[01][0-9]{7}$/ EAN-13 /^[0-9]{13}$/ EAN-8 /^[0-9]{8}$/ Code 39 /^\*[0-9A-Z\-\.\$\/+% ]{1,48}\*$/ Codabar /^([ABCD])[0-9\-\$:\/\.\+]{1,48}\\1$/i 128C /^(\d\d)+$/ Also, UPC- and EAN-codes can be suffixed with additional 2- or 5-digit supplemental code. Additional info: when printing, 38 pixels take up 1 cm of space.

Copyright (c) 2002 Nieko Maatjes (nieko.net) Changed from a script to a class by Stefano Locati 2003 (dev.obliquid.com)

How to use the class, a short Example:

$barcode =& new barcode(); $barcode->create("*ERBO00148*", "Code 39", $filename);




Tags:

version:  $Id: barcode.php,v 1.6 2004/03/08 18:59:33 slocati Exp $








Documentation generated on Tue, 29 Mar 2005 09:03:36 -0800 by phpDocumentor 1.2.0rc2