PEEL Shopping
Open source ecommerce : PEEL Shopping
|
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. 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.
__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.
getBarcodeArray | ( | ) |
Returns a barcode array which is readable by TCPDF.
Definition at line 731 of file pdf417.php.
|
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.
|
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.
|
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.
|
protected |
Create array of sequences from input.
$code | (string) code |
Definition at line 816 of file pdf417.php.
|
protected |
Barcode array to be returned which is readable by TCPDF.
Definition at line 99 of file pdf417.php.
|
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.
This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:41:43 - is a product of SAS. All rights reserved.