1
This commit is contained in:
@@ -828,7 +828,7 @@ class TCPDFBarcode {
|
||||
$chr['5'] = '11101011101010';
|
||||
$chr['6'] = '10111011101010';
|
||||
$chr['7'] = '10101011101110';
|
||||
$chr['8'] = '10101110111010';
|
||||
$chr['8'] = '11101010111010';
|
||||
$chr['9'] = '10111010111010';
|
||||
if ($checksum) {
|
||||
// add checksum
|
||||
@@ -838,7 +838,7 @@ class TCPDFBarcode {
|
||||
// add leading zero if code-length is odd
|
||||
$code = '0'.$code;
|
||||
}
|
||||
$seq = '11011010';
|
||||
$seq = '1110111010';
|
||||
$clen = strlen($code);
|
||||
for ($i = 0; $i < $clen; ++$i) {
|
||||
$digit = $code[$i];
|
||||
@@ -848,7 +848,7 @@ class TCPDFBarcode {
|
||||
}
|
||||
$seq .= $chr[$digit];
|
||||
}
|
||||
$seq .= '1101011';
|
||||
$seq .= '111010111';
|
||||
$bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array());
|
||||
return $this->binseq_to_array($seq, $bararray);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user