32
1
mirror of https://github.com/vdm-io/tcpdf.git synced 2024-11-22 21:05:10 +00:00
This commit is contained in:
nicolaasuni 2011-05-07 18:38:52 +02:00
parent 93e096d631
commit d308da169c
4 changed files with 35 additions and 32 deletions

View File

@ -1,3 +1,7 @@
5.9.077 (2011-05-07)
- Bug item #3298591 "error code93" was fixed.
- SetLineStyle() function was improved.
5.9.076 (2011-05-06) 5.9.076 (2011-05-06)
- Bug item #3298264 "codebar 93 error" was fixed. - Bug item #3298264 "codebar 93 error" was fixed.

View File

@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------ ------------------------------------------------------------
Name: TCPDF Name: TCPDF
Version: 5.9.076 Version: 5.9.077
Release date: 2011-05-06 Release date: 2011-05-07
Author: Nicola Asuni Author: Nicola Asuni
Copyright (c) 2002-2011: Copyright (c) 2002-2011:

View File

@ -1,9 +1,9 @@
<?php <?php
//============================================================+ //============================================================+
// File name : barcodes.php // File name : barcodes.php
// Version : 1.0.013 // Version : 1.0.014
// Begin : 2008-06-09 // Begin : 2008-06-09
// Last Update : 2011-05-06 // Last Update : 2011-05-07
// Author : Nicola Asuni - Tecnick.com S.r.l - Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com // Author : Nicola Asuni - Tecnick.com S.r.l - Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html) // License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// ------------------------------------------------------------------- // -------------------------------------------------------------------
@ -37,14 +37,14 @@
* PHP class to creates array representations for common 1D barcodes to be used with TCPDF. * PHP class to creates array representations for common 1D barcodes to be used with TCPDF.
* @package com.tecnick.tcpdf * @package com.tecnick.tcpdf
* @author Nicola Asuni * @author Nicola Asuni
* @version 1.0.013 * @version 1.0.014
*/ */
/** /**
* @class TCPDFBarcode * @class TCPDFBarcode
* PHP class to creates array representations for common 1D barcodes to be used with TCPDF (http://www.tcpdf.org).<br> * PHP class to creates array representations for common 1D barcodes to be used with TCPDF (http://www.tcpdf.org).<br>
* @package com.tecnick.tcpdf * @package com.tecnick.tcpdf
* @version 1.0.013 * @version 1.0.014
* @author Nicola Asuni * @author Nicola Asuni
*/ */
class TCPDFBarcode { class TCPDFBarcode {
@ -410,7 +410,7 @@ class TCPDFBarcode {
$chr[70] = '231111'; // F $chr[70] = '231111'; // F
$chr[71] = '112113'; // G $chr[71] = '112113'; // G
$chr[72] = '112212'; // H $chr[72] = '112212'; // H
$chr[72] = '112311'; // I $chr[73] = '112311'; // I
$chr[74] = '122112'; // J $chr[74] = '122112'; // J
$chr[75] = '132111'; // K $chr[75] = '132111'; // K
$chr[76] = '111123'; // L $chr[76] = '111123'; // L

View File

@ -1,9 +1,9 @@
<?php <?php
//============================================================+ //============================================================+
// File name : tcpdf.php // File name : tcpdf.php
// Version : 5.9.076 // Version : 5.9.077
// Begin : 2002-08-03 // Begin : 2002-08-03
// Last Update : 2011-05-06 // Last Update : 2011-05-07
// Author : Nicola Asuni - Tecnick.com S.r.l - Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com // Author : Nicola Asuni - Tecnick.com S.r.l - Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
// License : http://www.tecnick.com/pagefiles/tcpdf/LICENSE.TXT GNU-LGPLv3 + YOU CAN'T REMOVE ANY TCPDF COPYRIGHT NOTICE OR LINK FROM THE GENERATED PDF DOCUMENTS. // License : http://www.tecnick.com/pagefiles/tcpdf/LICENSE.TXT GNU-LGPLv3 + YOU CAN'T REMOVE ANY TCPDF COPYRIGHT NOTICE OR LINK FROM THE GENERATED PDF DOCUMENTS.
// ------------------------------------------------------------------- // -------------------------------------------------------------------
@ -134,7 +134,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 5.9.076 * @version 5.9.077
*/ */
// Main configuration file. Define the K_TCPDF_EXTERNAL_CONFIG constant to skip this file. // Main configuration file. Define the K_TCPDF_EXTERNAL_CONFIG constant to skip this file.
@ -146,7 +146,7 @@ require_once(dirname(__FILE__).'/config/tcpdf_config.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 5.9.076 * @version 5.9.077
* @author Nicola Asuni - info@tecnick.com * @author Nicola Asuni - info@tecnick.com
*/ */
class TCPDF { class TCPDF {
@ -157,7 +157,7 @@ class TCPDF {
* Current TCPDF version. * Current TCPDF version.
* @private * @private
*/ */
private $tcpdf_version = '5.9.076'; private $tcpdf_version = '5.9.077';
// Protected properties // Protected properties
@ -12897,33 +12897,32 @@ class TCPDF {
if (!is_array($style)) { if (!is_array($style)) {
return; return;
} }
extract($style); if (isset($style['width'])) {
if (isset($width)) { $this->LineWidth = $style['width'];
$this->LineWidth = $width; $this->linestyleWidth = sprintf('%.2F w', ($style['width'] * $this->k));
$this->linestyleWidth = sprintf('%.2F w', ($width * $this->k));
$s .= $this->linestyleWidth.' '; $s .= $this->linestyleWidth.' ';
} }
if (isset($cap)) { if (isset($style['cap'])) {
$ca = array('butt' => 0, 'round'=> 1, 'square' => 2); $ca = array('butt' => 0, 'round'=> 1, 'square' => 2);
if (isset($ca[$cap])) { if (isset($ca[$style['cap']])) {
$this->linestyleCap = $ca[$cap].' J'; $this->linestyleCap = $ca[$style['cap']].' J';
$s .= $this->linestyleCap.' '; $s .= $this->linestyleCap.' ';
} }
} }
if (isset($join)) { if (isset($style['join'])) {
$ja = array('miter' => 0, 'round' => 1, 'bevel' => 2); $ja = array('miter' => 0, 'round' => 1, 'bevel' => 2);
if (isset($ja[$join])) { if (isset($ja[$style['join']])) {
$this->linestyleJoin = $ja[$join].' j'; $this->linestyleJoin = $ja[$style['join']].' j';
$s .= $this->linestyleJoin.' '; $s .= $this->linestyleJoin.' ';
} }
} }
if (isset($dash)) { if (isset($style['dash'])) {
$dash_string = ''; $dash_string = '';
if ($dash) { if ($style['dash']) {
if (preg_match('/^.+,/', $dash) > 0) { if (preg_match('/^.+,/', $style['dash']) > 0) {
$tab = explode(',', $dash); $tab = explode(',', $style['dash']);
} else { } else {
$tab = array($dash); $tab = array($style['dash']);
} }
$dash_string = ''; $dash_string = '';
foreach ($tab as $i => $v) { foreach ($tab as $i => $v) {
@ -12933,14 +12932,14 @@ class TCPDF {
$dash_string .= sprintf('%.2F', $v); $dash_string .= sprintf('%.2F', $v);
} }
} }
if (!isset($phase) OR !$dash) { if (!isset($style['phase']) OR !$style['dash']) {
$phase = 0; $style['phase'] = 0;
} }
$this->linestyleDash = sprintf('[%s] %.2F d', $dash_string, $phase); $this->linestyleDash = sprintf('[%s] %.2F d', $dash_string, $style['phase']);
$s .= $this->linestyleDash.' '; $s .= $this->linestyleDash.' ';
} }
if (isset($color)) { if (isset($style['color'])) {
$s .= $this->SetDrawColorArray($color, true).' '; $s .= $this->SetDrawColorArray($style['color'], true).' ';
} }
if (!$ret) { if (!$ret) {
$this->_out($s); $this->_out($s);