32
1
mirror of https://github.com/vdm-io/tcpdf.git synced 2024-11-25 05:57:32 +00:00

6.0.046 (2013-11-17)

- preg_replace_callback functions were replaced to improve memory performances.
This commit is contained in:
nicolaasuni 2013-11-17 21:13:04 +00:00
parent 943b8c2faf
commit 22518a0546
2 changed files with 6 additions and 6 deletions

View File

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

View File

@ -1,9 +1,9 @@
<?php
//============================================================+
// File name : tcpdf_parser.php
// Version : 1.0.011
// Version : 1.0.012
// Begin : 2011-05-23
// Last Update : 2013-10-13
// Last Update : 2013-11-17
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : http://www.tecnick.com/pagefiles/tcpdf/LICENSE.TXT GNU-LGPLv3
// -------------------------------------------------------------------
@ -37,7 +37,7 @@
* This is a PHP class for parsing PDF documents.<br>
* @package com.tecnick.tcpdf
* @author Nicola Asuni
* @version 1.0.011
* @version 1.0.012
*/
// include class for decoding filters
@ -618,9 +618,9 @@ class TCPDF_PARSER {
$offset += 6;
if (preg_match('/^([\r]?[\n])/isU', substr($this->pdfdata, $offset), $matches) == 1) {
$offset += strlen($matches[0]);
if (preg_match('/([\r]?[\n])?(endstream)[\x09\x0a\x0c\x0d\x20]/isU', substr($this->pdfdata, $offset), $matches, PREG_OFFSET_CAPTURE) == 1) {
if (preg_match('/(endstream)[\x09\x0a\x0c\x0d\x20]/isU', substr($this->pdfdata, $offset), $matches, PREG_OFFSET_CAPTURE) == 1) {
$objval = substr($this->pdfdata, $offset, $matches[0][1]);
$offset += $matches[2][1];
$offset += $matches[1][1];
}
}
} elseif (substr($this->pdfdata, $offset, 9) == 'endstream') {