32
1
mirror of https://github.com/vdm-io/tcpdf.git synced 2024-12-23 00:48:55 +00:00

6.0.077 (2014-05-06)

- A Datamatrix barcode bug was fixed.
This commit is contained in:
nicolaasuni 2014-05-06 23:13:40 +01:00
parent 71d9a43e58
commit 957d538d7e
6 changed files with 18 additions and 11 deletions

View File

@ -1,3 +1,6 @@
6.0.077 (2014-05-06)
- A Datamatrix barcode bug was fixed.
6.0.076 (2014-05-06) 6.0.076 (2014-05-06)
- A bug in Datamatrix Base256 encoding was fixed. - A bug in Datamatrix Base256 encoding was fixed.
- Merged fix for SVG use/clip-gradient. - Merged fix for SVG use/clip-gradient.

View File

@ -8,7 +8,7 @@ http://sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------ ------------------------------------------------------------
Name: TCPDF Name: TCPDF
Version: 6.0.076 Version: 6.0.077
Release date: 2014-05-06 Release date: 2014-05-06
Author: Nicola Asuni Author: Nicola Asuni

View File

@ -1,6 +1,6 @@
{ {
"name": "tecnick.com/tcpdf", "name": "tecnick.com/tcpdf",
"version": "6.0.076", "version": "6.0.077",
"homepage": "http://www.tcpdf.org/", "homepage": "http://www.tcpdf.org/",
"type": "library", "type": "library",
"description": "TCPDF is a PHP class for generating PDF documents.", "description": "TCPDF is a PHP class for generating PDF documents.",

View File

@ -1,7 +1,7 @@
<?php <?php
//============================================================+ //============================================================+
// File name : datamatrix.php // File name : datamatrix.php
// Version : 1.0.007 // Version : 1.0.008
// Begin : 2010-06-07 // Begin : 2010-06-07
// Last Update : 2014-05-06 // Last Update : 2014-05-06
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com // Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
@ -40,7 +40,7 @@
* *
* @package com.tecnick.tcpdf * @package com.tecnick.tcpdf
* @author Nicola Asuni * @author Nicola Asuni
* @version 1.0.007 * @version 1.0.008
*/ */
// custom definitions // custom definitions
@ -277,9 +277,6 @@ class Datamatrix {
} }
} }
} }
echo implode(' ', $cw)."\n";// DEBUG
// add error correction codewords // add error correction codewords
$cw = $this->getErrorCorrection($cw, $params[13], $params[14], $params[15]); $cw = $this->getErrorCorrection($cw, $params[13], $params[14], $params[15]);
// initialize empty arrays // initialize empty arrays
@ -835,6 +832,8 @@ class Datamatrix {
$cw[] = ($chr + 1); $cw[] = ($chr + 1);
++$cw_num; ++$cw_num;
$pos = $epos; $pos = $epos;
$enc = ENC_ASCII;
$this->last_enc = $enc;
} elseif (($cwr == 2) AND ($p == 1)) { } elseif (($cwr == 2) AND ($p == 1)) {
// c. If two symbol characters remain and only one C40 value (data character) remains to be encoded // c. If two symbol characters remain and only one C40 value (data character) remains to be encoded
$c1 = array_shift($temp_cw); $c1 = array_shift($temp_cw);
@ -843,6 +842,8 @@ class Datamatrix {
$cw[] = ($chr + 1); $cw[] = ($chr + 1);
$cw_num += 2; $cw_num += 2;
$pos = $epos; $pos = $epos;
$enc = ENC_ASCII;
$this->last_enc = $enc;
} elseif (($cwr == 2) AND ($p == 2)) { } elseif (($cwr == 2) AND ($p == 2)) {
// b. If two symbol characters remain and two C40 values remain to be encoded // b. If two symbol characters remain and two C40 values remain to be encoded
$c1 = array_shift($temp_cw); $c1 = array_shift($temp_cw);
@ -853,10 +854,13 @@ class Datamatrix {
$cw[] = ($tmp % 256); $cw[] = ($tmp % 256);
$cw_num += 2; $cw_num += 2;
$pos = $epos; $pos = $epos;
$enc = ENC_ASCII;
$this->last_enc = $enc;
} else { } else {
// switch to ASCII encoding // switch to ASCII encoding
if ($enc != ENC_ASCII) { if ($enc != ENC_ASCII) {
$enc = ENC_ASCII; $enc = ENC_ASCII;
$this->last_enc = $enc;
$cw[] = $this->getSwitchEncodingCodeword($enc); $cw[] = $this->getSwitchEncodingCodeword($enc);
++$cw_num; ++$cw_num;
$pos = ($epos - $p); $pos = ($epos - $p);

View File

@ -55,7 +55,7 @@ class TCPDF_STATIC {
* Current TCPDF version. * Current TCPDF version.
* @private static * @private static
*/ */
private static $tcpdf_version = '6.0.076'; private static $tcpdf_version = '6.0.077';
/** /**
* String alias for total number of pages. * String alias for total number of pages.

View File

@ -1,7 +1,7 @@
<?php <?php
//============================================================+ //============================================================+
// File name : tcpdf.php // File name : tcpdf.php
// Version : 6.0.076 // Version : 6.0.077
// Begin : 2002-08-03 // Begin : 2002-08-03
// Last Update : 2014-05-06 // Last Update : 2014-05-06
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com // Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
@ -104,7 +104,7 @@
* Tools to encode your unicode fonts are on fonts/utils directory.</p> * Tools to encode your unicode fonts are on fonts/utils directory.</p>
* @package com.tecnick.tcpdf * @package com.tecnick.tcpdf
* @author Nicola Asuni * @author Nicola Asuni
* @version 6.0.076 * @version 6.0.077
*/ */
// TCPDF configuration // TCPDF configuration
@ -128,7 +128,7 @@ require_once(dirname(__FILE__).'/include/tcpdf_static.php');
* TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.<br> * TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.<br>
* @package com.tecnick.tcpdf * @package com.tecnick.tcpdf
* @brief PHP class for generating PDF documents without requiring external extensions. * @brief PHP class for generating PDF documents without requiring external extensions.
* @version 6.0.076 * @version 6.0.077
* @author Nicola Asuni - info@tecnick.com * @author Nicola Asuni - info@tecnick.com
*/ */
class TCPDF { class TCPDF {