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:
|