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

6.2.5 (2015-01-24)

- Bug #1019 " in static context" was fixed.
- Bug #1015 "Infinite loop in getIndirectObject method of parser" was fixed.
This commit is contained in:
nicolaasuni 2015-01-24 09:41:10 +00:00
parent ba2afad72c
commit da2fe93594
6 changed files with 24 additions and 19 deletions

View File

@ -1,3 +1,7 @@
6.2.5 (2015-01-24)
- Bug #1019 "$this in static context" was fixed.
- Bug #1015 "Infinite loop in getIndirectObject method of parser" was fixed.
6.2.4 (2015-01-08) 6.2.4 (2015-01-08)
- fix warning related to empty K_PATH_URL. - fix warning related to empty K_PATH_URL.
- fix error when a $table_colwidths key is not set. - fix error when a $table_colwidths key is not set.

View File

@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------ ------------------------------------------------------------
Name: TCPDF Name: TCPDF
Version: 6.2.4 Version: 6.2.5
Release date: 2015-01-08 Release date: 2015-01-24
Author: Nicola Asuni Author: Nicola Asuni
Copyright (c) 2002-2015: Copyright (c) 2002-2015:

View File

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

View File

@ -1,9 +1,9 @@
<?php <?php
//============================================================+ //============================================================+
// File name : tcpdf_static.php // File name : tcpdf_static.php
// Version : 1.1.1 // Version : 1.1.2
// Begin : 2002-08-03 // Begin : 2002-08-03
// Last Update : 2015-01-08 // Last Update : 2015-01-24
// 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)
// ------------------------------------------------------------------- // -------------------------------------------------------------------
@ -38,7 +38,7 @@
* This is a PHP class that contains static methods for the TCPDF class.<br> * This is a PHP class that contains static methods for the TCPDF class.<br>
* @package com.tecnick.tcpdf * @package com.tecnick.tcpdf
* @author Nicola Asuni * @author Nicola Asuni
* @version 1.1.1 * @version 1.1.2
*/ */
/** /**
@ -55,7 +55,7 @@ class TCPDF_STATIC {
* Current TCPDF version. * Current TCPDF version.
* @private static * @private static
*/ */
private static $tcpdf_version = '6.2.3'; private static $tcpdf_version = '6.2.5';
/** /**
* String alias for total number of pages. * String alias for total number of pages.
@ -2435,7 +2435,7 @@ class TCPDF_STATIC {
if (strpos($filename, '://') === false) { if (strpos($filename, '://') === false) {
$filename = 'file://'.$filename; $filename = 'file://'.$filename;
} elseif (strpos($filename, 'file://') !== 0) { } elseif (strpos($filename, 'file://') !== 0) {
$this->Error('Unsupported file protocol'); return false;
} }
return fopen($filename, $mode); return fopen($filename, $mode);
} }

View File

@ -1,9 +1,9 @@
<?php <?php
//============================================================+ //============================================================+
// File name : tcpdf.php // File name : tcpdf.php
// Version : 6.2.4 // Version : 6.2.5
// Begin : 2002-08-03 // Begin : 2002-08-03
// Last Update : 2015-01-08 // Last Update : 2015-01-24
// 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.2.4 * @version 6.2.5
*/ */
// 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.2.4 * @version 6.2.5
* @author Nicola Asuni - info@tecnick.com * @author Nicola Asuni - info@tecnick.com
*/ */
class TCPDF { class TCPDF {

View File

@ -1,13 +1,13 @@
<?php <?php
//============================================================+ //============================================================+
// File name : tcpdf_parser.php // File name : tcpdf_parser.php
// Version : 1.0.014 // Version : 1.0.15
// Begin : 2011-05-23 // Begin : 2011-05-23
// Last Update : 2014-02-18 // Last Update : 2015-01-24
// 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 : http://www.tecnick.com/pagefiles/tcpdf/LICENSE.TXT GNU-LGPLv3 // License : http://www.tecnick.com/pagefiles/tcpdf/LICENSE.TXT GNU-LGPLv3
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// Copyright (C) 2011-2014 Nicola Asuni - Tecnick.com LTD // Copyright (C) 2011-2015 Nicola Asuni - Tecnick.com LTD
// //
// This file is part of TCPDF software library. // This file is part of TCPDF software library.
// //
@ -37,7 +37,7 @@
* This is a PHP class for parsing PDF documents.<br> * This is a PHP class for parsing PDF documents.<br>
* @package com.tecnick.tcpdf * @package com.tecnick.tcpdf
* @author Nicola Asuni * @author Nicola Asuni
* @version 1.0.014 * @version 1.0.15
*/ */
// include class for decoding filters // include class for decoding filters
@ -48,7 +48,7 @@ require_once(dirname(__FILE__).'/include/tcpdf_filters.php');
* This is a PHP class for parsing PDF documents.<br> * This is a PHP class for parsing PDF documents.<br>
* @package com.tecnick.tcpdf * @package com.tecnick.tcpdf
* @brief This is a PHP class for parsing PDF documents.. * @brief This is a PHP class for parsing PDF documents..
* @version 1.0.010 * @version 1.0.15
* @author Nicola Asuni - info@tecnick.com * @author Nicola Asuni - info@tecnick.com
*/ */
class TCPDF_PARSER { class TCPDF_PARSER {
@ -690,7 +690,8 @@ class TCPDF_PARSER {
$objdata = array(); $objdata = array();
$i = 0; // object main index $i = 0; // object main index
do { do {
// get element $oldoffset = $offset;
// get element
$element = $this->getRawObject($offset); $element = $this->getRawObject($offset);
$offset = $element[2]; $offset = $element[2];
// decode stream using stream's dictionary information // decode stream using stream's dictionary information
@ -699,7 +700,7 @@ class TCPDF_PARSER {
} }
$objdata[$i] = $element; $objdata[$i] = $element;
++$i; ++$i;
} while ($element[0] != 'endobj'); } while (($element[0] != 'endobj') AND ($offset != $oldoffset));
// remove closing delimiter // remove closing delimiter
array_pop($objdata); array_pop($objdata);
// return raw object content // return raw object content