mirror of
https://github.com/vdm-io/tcpdf.git
synced 2024-11-16 01:37:07 +00:00
6.0.046 (2013-11-17)
- preg_replace_callback functions were replaced to improve memory performances.
This commit is contained in:
parent
943b8c2faf
commit
22518a0546
@ -55,7 +55,7 @@ class TCPDF_STATIC {
|
|||||||
* Current TCPDF version.
|
* Current TCPDF version.
|
||||||
* @private static
|
* @private static
|
||||||
*/
|
*/
|
||||||
private static $tcpdf_version = '6.0.044';
|
private static $tcpdf_version = '6.0.046';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* String alias for total number of pages.
|
* String alias for total number of pages.
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
//============================================================+
|
//============================================================+
|
||||||
// File name : tcpdf_parser.php
|
// File name : tcpdf_parser.php
|
||||||
// Version : 1.0.011
|
// Version : 1.0.012
|
||||||
// Begin : 2011-05-23
|
// 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
|
// 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
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
@ -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.011
|
* @version 1.0.012
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// include class for decoding filters
|
// include class for decoding filters
|
||||||
@ -618,9 +618,9 @@ class TCPDF_PARSER {
|
|||||||
$offset += 6;
|
$offset += 6;
|
||||||
if (preg_match('/^([\r]?[\n])/isU', substr($this->pdfdata, $offset), $matches) == 1) {
|
if (preg_match('/^([\r]?[\n])/isU', substr($this->pdfdata, $offset), $matches) == 1) {
|
||||||
$offset += strlen($matches[0]);
|
$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]);
|
$objval = substr($this->pdfdata, $offset, $matches[0][1]);
|
||||||
$offset += $matches[2][1];
|
$offset += $matches[1][1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} elseif (substr($this->pdfdata, $offset, 9) == 'endstream') {
|
} elseif (substr($this->pdfdata, $offset, 9) == 'endstream') {
|
||||||
|
Loading…
Reference in New Issue
Block a user