Öffentliche Methoden | |
__construct ($code, $ecl=-1, $aspectratio=2, $macro=array()) | |
getBarcodeArray () | |
Geschützte Methoden | |
getErrorCorrectionLevel ($ecl, $numcw) | |
getErrorCorrection ($cw, $ecl) | |
getInputSequences ($code) | |
getCompaction ($mode, $code, $addmode=true) | |
Geschützte Attribute | |
$barcode_array = array() | |
$start_pattern = '11111111010101000' | |
$stop_pattern = '111111101000101001' | |
$textsubmodes | |
$textlatch | |
$clusters | |
$rsfactors | |
Class to create PDF417 barcode arrays for TCPDF class. PDF417 (ISO/IEC 15438:2006) is a 2-dimensional stacked bar code created by Symbol Technologies in 1991.
Definiert in Zeile 93 der Datei pdf417.php.
__construct | ( | $code, | |
$ecl = -1 , |
|||
$aspectratio = 2 , |
|||
$macro = array() |
|||
) |
This is the class constructor. Creates a PDF417 object
$code | (string) code to represent using PDF417 |
$ecl | (int) error correction level (0-8); default -1 = automatic correction level |
$aspectratio | (float) the width to height of the symbol (excluding quiet zones) |
$macro | (array) information for macro block |
Definiert in Zeile 532 der Datei pdf417.php.
Benutzt $barcode_array, getCompaction(), getErrorCorrection(), getErrorCorrectionLevel() und getInputSequences().
getBarcodeArray | ( | ) |
Returns a barcode array which is readable by TCPDF
Definiert in Zeile 731 der Datei pdf417.php.
Benutzt $barcode_array.
|
protected |
Compact data by mode.
$mode | (int) compaction mode number |
$code | (string) data to compact |
$addmode | (boolean) if true add the mode codeword at first position |
Definiert in Zeile 873 der Datei pdf417.php.
Wird benutzt von __construct().
|
protected |
Returns the error correction codewords
$cw | (array) array of codewords including Symbol Lenght Descriptor and pad |
$ecl | (int) error correction level 0-8 |
Definiert in Zeile 780 der Datei pdf417.php.
Wird benutzt von __construct().
|
protected |
Returns the error correction level (0-8) to be used
$ecl | (int) error correction level |
$numcw | (int) number of data codewords |
Definiert in Zeile 742 der Datei pdf417.php.
Wird benutzt von __construct().
|
protected |
Create array of sequences from input
$code | (string) code |
Definiert in Zeile 816 der Datei pdf417.php.
Wird benutzt von __construct().
|
protected |
Barcode array to be returned which is readable by TCPDF.
Definiert in Zeile 99 der Datei pdf417.php.
Wird benutzt von __construct() und getBarcodeArray().
|
protected |
Clusters of codewords (0, 3, 6)
Values are hex equivalents of binary representation of bars (1 = bar, 0 = space).
The codewords numbered from 900 to 928 have special meaning, some enable to switch between modes in order to optimise the code:
Definiert in Zeile 156 der Datei pdf417.php.
|
protected |
Array of factors of the Reed-Solomon polynomial equations used for error correction; one sub array for each correction level (0-8).
Definiert in Zeile 445 der Datei pdf417.php.
|
protected |
Start pattern.
Definiert in Zeile 105 der Datei pdf417.php.
|
protected |
Stop pattern.
Definiert in Zeile 111 der Datei pdf417.php.
|
protected |
Array of switching codes for Text Compaction Sub-Modes.
Definiert in Zeile 128 der Datei pdf417.php.
|
protected |
Array of text Compaction Sub-Modes (values 0xFB - 0xFF are used for submode changers).
Definiert in Zeile 117 der Datei pdf417.php.