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

6.0.058 (2014-01-31)

- Bug #886 "Bugs with SVG using <defs> and <use>" was fixed.
This commit is contained in:
nicolaasuni 2014-01-31 18:29:02 +00:00
parent ee71246dff
commit 11c74be7c3
5 changed files with 16 additions and 10 deletions

View File

@ -1,3 +1,6 @@
6.0.058 (2014-01-31)
- Bug #886 "Bugs with SVG using <defs> and <use>" was fixed.
6.0.057 (2014-01-26) 6.0.057 (2014-01-26)
- Bug #883 "Parsing error" was fixed. - Bug #883 "Parsing error" was fixed.

View File

@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------ ------------------------------------------------------------
Name: TCPDF Name: TCPDF
Version: 6.0.057 Version: 6.0.058
Release date: 2014-01-26 Release date: 2014-01-31
Author: Nicola Asuni Author: Nicola Asuni
Copyright (c) 2002-2014: Copyright (c) 2002-2014:

View File

@ -1,6 +1,6 @@
{ {
"name": "tecnick.com/tcpdf", "name": "tecnick.com/tcpdf",
"version": "6.0.057", "version": "6.0.058",
"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

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

View File

@ -1,9 +1,9 @@
<?php <?php
//============================================================+ //============================================================+
// File name : tcpdf.php // File name : tcpdf.php
// Version : 6.0.057 // Version : 6.0.058
// Begin : 2002-08-03 // Begin : 2002-08-03
// Last Update : 2014-01-15 // Last Update : 2014-01-31
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com // Author : Nicola Asuni - Tecnick.com LTD - 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)
// ------------------------------------------------------------------- // -------------------------------------------------------------------
@ -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.057 * @version 6.0.058
*/ */
// 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.057 * @version 6.0.058
* @author Nicola Asuni - info@tecnick.com * @author Nicola Asuni - info@tecnick.com
*/ */
class TCPDF { class TCPDF {
@ -24153,6 +24153,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
if (empty($child_element['attribs']['closing_tag'])) { if (empty($child_element['attribs']['closing_tag'])) {
$this->startSVGElementHandler('child-tag', $child_element['name'], $child_element['attribs']); $this->startSVGElementHandler('child-tag', $child_element['name'], $child_element['attribs']);
} else { } else {
if (isset($child_element['attribs']['content'])) {
$this->svgtext = $child_element['attribs']['content'];
}
$this->endSVGElementHandler('child-tag', $child_element['name']); $this->endSVGElementHandler('child-tag', $child_element['name']);
} }
} }
@ -24174,12 +24177,12 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
if (isset($this->svgdefs[$last_svgdefs_id]['attribs']['child_elements'])) { if (isset($this->svgdefs[$last_svgdefs_id]['attribs']['child_elements'])) {
foreach($this->svgdefs[$last_svgdefs_id]['attribs']['child_elements'] as $child_element) { foreach($this->svgdefs[$last_svgdefs_id]['attribs']['child_elements'] as $child_element) {
if (isset($child_element['attribs']['id']) AND ($child_element['name'] == $name)) { if (isset($child_element['attribs']['id']) AND ($child_element['name'] == $name)) {
$this->svgdefs[$last_svgdefs_id]['attribs']['child_elements'][$child_element['attribs']['id'].'_CLOSE'] = array('name' => $name, 'attribs' => array('closing_tag' => TRUE)); $this->svgdefs[$last_svgdefs_id]['attribs']['child_elements'][$child_element['attribs']['id'].'_CLOSE'] = array('name' => $name, 'attribs' => array('closing_tag' => TRUE, 'content' => $this->svgtext));
return; return;
} }
} }
if ($this->svgdefs[$last_svgdefs_id]['name'] == $name) { if ($this->svgdefs[$last_svgdefs_id]['name'] == $name) {
$this->svgdefs[$last_svgdefs_id]['attribs']['child_elements'][$last_svgdefs_id.'_CLOSE'] = array('name' => $name, 'attribs' => array('closing_tag' => TRUE)); $this->svgdefs[$last_svgdefs_id]['attribs']['child_elements'][$last_svgdefs_id.'_CLOSE'] = array('name' => $name, 'attribs' => array('closing_tag' => TRUE, 'content' => $this->svgtext));
return; return;
} }
} }