ILIAS
Release_4_4_x_branch Revision 61816
|
Class to create PDF417 barcode arrays for TCPDF class. More...
Public Member Functions | |
__construct ($code, $ecl=-1, $aspectratio=2, $macro=array()) | |
This is the class constructor. | |
getBarcodeArray () | |
Returns a barcode array which is readable by TCPDF. |
Protected Member Functions | |
getErrorCorrectionLevel ($ecl, $numcw) | |
Returns the error correction level (0-8) to be used. | |
getErrorCorrection ($cw, $ecl) | |
Returns the error correction codewords. | |
getInputSequences ($code) | |
Create array of sequences from input. | |
getCompaction ($mode, $code, $addmode=true) | |
Compact data by mode. |
Protected Attributes | |
$barcode_array = array() | |
Barcode array to be returned which is readable by TCPDF. | |
$start_pattern = '11111111010101000' | |
Start pattern. | |
$stop_pattern = '111111101000101001' | |
Stop pattern. | |
$textsubmodes | |
Array of text Compaction Sub-Modes (values 0xFB - 0xFF are used for submode changers). | |
$textlatch | |
Array of switching codes for Text Compaction Sub-Modes. | |
$clusters | |
Clusters of codewords (0, 3, 6) Values are hex equivalents of binary representation of bars (1 = bar, 0 = space). | |
$rsfactors | |
Array of factors of the Reed-Solomon polynomial equations used for error correction; one sub array for each correction level (0-8). |
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.
Definition at line 93 of file pdf417.php.
PDF417::__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 |
Definition at line 532 of file pdf417.php.
References $barcode_array, $row, $size, getCompaction(), getErrorCorrection(), getErrorCorrectionLevel(), and getInputSequences().
PDF417::getBarcodeArray | ( | ) |
Returns a barcode array which is readable by TCPDF.
Definition at line 731 of file pdf417.php.
References $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 |
Definition at line 873 of file pdf417.php.
Referenced by __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 |
Definition at line 780 of file pdf417.php.
References $d.
Referenced by __construct().
|
protected |
Returns the error correction level (0-8) to be used.
$ecl | (int) error correction level |
$numcw | (int) number of data codewords |
Definition at line 742 of file pdf417.php.
Referenced by __construct().
|
protected |
Create array of sequences from input.
$code | (string) code |
Definition at line 816 of file pdf417.php.
Referenced by __construct().
|
protected |
Barcode array to be returned which is readable by TCPDF.
Definition at line 99 of file pdf417.php.
Referenced by __construct(), and 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:
Definition at line 156 of file 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).
Definition at line 445 of file pdf417.php.
|
protected |
Start pattern.
Definition at line 105 of file pdf417.php.
|
protected |
Stop pattern.
Definition at line 111 of file pdf417.php.
|
protected |
Array of switching codes for Text Compaction Sub-Modes.
Definition at line 128 of file pdf417.php.
|
protected |
Array of text Compaction Sub-Modes (values 0xFB - 0xFF are used for submode changers).
Definition at line 117 of file pdf417.php.