|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class to create PDF417 barcode arrays for TCPDF class. More...
Collaboration diagram for PDF417:Public Member Functions | |
| __construct ($code, $ecl=-1, $aspectratio=2, $macro=array()) | |
| This is the class constructor. More... | |
| getBarcodeArray () | |
| Returns a barcode array which is readable by TCPDF. More... | |
Protected Member Functions | |
| getErrorCorrectionLevel ($ecl, $numcw) | |
| Returns the error correction level (0-8) to be used. More... | |
| getErrorCorrection ($cw, $ecl) | |
| Returns the error correction codewords. More... | |
| getInputSequences ($code) | |
| Create array of sequences from input. More... | |
| getCompaction ($mode, $code, $addmode=true) | |
| Compact data by mode. More... | |
Protected Attributes | |
| $barcode_array = array() | |
| Barcode array to be returned which is readable by TCPDF. More... | |
| $start_pattern = '11111111010101000' | |
| Start pattern. More... | |
| $stop_pattern = '111111101000101001' | |
| Stop pattern. More... | |
| $textsubmodes | |
| Array of text Compaction Sub-Modes (values 0xFB - 0xFF are used for submode changers). More... | |
| $textlatch | |
| Array of switching codes for Text Compaction Sub-Modes. More... | |
| $clusters | |
| Clusters of codewords (0, 3, 6) Values are hex equivalents of binary representation of bars (1 = bar, 0 = space). More... | |
| $rsfactors | |
| Array of factors of the Reed-Solomon polynomial equations used for error correction; one sub array for each correction level (0-8). More... | |
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, $code, $h, $r, $row, $size, getCompaction(), getErrorCorrection(), getErrorCorrectionLevel(), getInputSequences(), and sprintf.
Here is the call graph for this function:| 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.
References $code, $d, $rest, and $t.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Returns the error correction codewords.
| $cw | (array) array of codewords including Symbol Length Descriptor and pad |
| $ecl | (int) error correction level 0-8 |
Definition at line 780 of file pdf417.php.
References $d.
Referenced by __construct().
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:
|
protected |
Create array of sequences from input.
| $code | (string) code |
Definition at line 816 of file pdf417.php.
References $code.
Referenced by __construct().
Here is the caller graph for this function:
|
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.