class | Datamatrix Class to create DataMatrix ECC 200 barcode arrays for TCPDF class. DataMatrix (ISO/IEC 16022:2006) is a 2-dimensional bar code. |
---|---|
package | com.tecnick.tcpdf |
author | Nicola Asuni |
version | 1.0.004 |
__construct(string $code)
Creates a datamatrix object
public | |
---|---|
string
Code to represent using Datamatrix.
get253StateCodeword(integer $cwpad,integer $cwpos): integer
protected |
---|
integer
Pad codeword.
integer
Number of data codewords from the beginning of encoded data.
integer
pad codeword
get255StateCodeword(integer $cwpad,integer $cwpos): integer
protected |
---|
integer
Pad codeword.
integer
Number of data codewords from the beginning of encoded data.
integer
pad codeword
getBarcodeArray(): array
public | |
---|---|
array
barcode array readable by TCPDF;
getErrorCorrection(array $wd,integer $nb,integer $nd,integer $nc,integer $gf = 256,integer $pp = 301): array
protected |
---|
array
Array of datacodewords.
integer
Number of blocks.
integer
Number of data codewords per block.
integer
Number of correction codewords per block.
integer
numner of fields on log/antilog table (power of 2).
integer
The value of its prime modulus polynomial (301 for ECC200).
array
data codewords + error codewords
getGFProduct(integer $a,integer $b,array $log,array $alog,integer $gf): integer
protected |
---|
integer
first number to multiply.
integer
second number to multiply.
array
Log table.
array
Anti-Log table.
integer
Number of Factors of the Reed-Solomon polynomial.
integer
product
getHighLevelEncoding(string $data): array
protected |
---|
string
data to encode
array
of codewords
getMaxDataCodewords(integer $numcw): integer
protected |
---|
integer
Number of current codewords.
integer
number of data codewords in matrix
getPlacementMap(integer $nrow,integer $ncol): array
(Annex F - ECC 200 symbol character placement)
protected |
---|
integer
Number of rows.
integer
Number of columns.
array
getSwitchEncodingCodeword(integer $mode): integer
protected |
---|
integer
New encoding mode.
integer
Switch codeword.
isCharMode(integer $chr,integer $mode): boolean
protected |
---|
integer
Character (byte) to check.
integer
Current encoding mode.
boolean
true if the char is of the selected mode.
lookAheadTest(string $data,integer $pos,integer $mode): integer
protected |
---|
string
data to encode
integer
current position
integer
current encoding mode
integer
encoding mode
placeCornerA(array $marr,integer $nrow,integer $ncol,integer $chr): array
(Annex F - ECC 200 symbol character placement)
protected |
---|
array
Array of symbols.
integer
Number of rows.
integer
Number of columns.
integer
Char byte.
array
placeCornerB(array $marr,integer $nrow,integer $ncol,integer $chr): array
(Annex F - ECC 200 symbol character placement)
protected |
---|
array
Array of symbols.
integer
Number of rows.
integer
Number of columns.
integer
Char byte.
array
placeCornerC(array $marr,integer $nrow,integer $ncol,integer $chr): array
(Annex F - ECC 200 symbol character placement)
protected |
---|
array
Array of symbols.
integer
Number of rows.
integer
Number of columns.
integer
Char byte.
array
placeCornerD(array $marr,integer $nrow,integer $ncol,integer $chr): array
(Annex F - ECC 200 symbol character placement)
protected |
---|
array
Array of symbols.
integer
Number of rows.
integer
Number of columns.
integer
Char byte.
array
placeModule(array $marr,integer $nrow,integer $ncol,integer $row,integer $col,integer $chr,integer $bit): array
(Annex F - ECC 200 symbol character placement)
protected |
---|
array
Array of symbols.
integer
Number of rows.
integer
Number of columns.
integer
Row number.
integer
Column number.
integer
Char byte.
integer
Bit.
array
placeUtah(array $marr,integer $nrow,integer $ncol,integer $row,integer $col,integer $chr): array
(Annex F - ECC 200 symbol character placement)
protected |
---|
array
Array of symbols.
integer
Number of rows.
integer
Number of columns.
integer
Row number.
integer
Column number.
integer
Char byte.
array
last_enc :
protected | |
---|---|
symbattr :
protected | |
---|---|
chset_id :
protected | |
---|---|
chset :
protected | |
---|---|