diff --git a/include/tcpdf_static.php b/include/tcpdf_static.php index ad3bacc..75879df 100644 --- a/include/tcpdf_static.php +++ b/include/tcpdf_static.php @@ -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. diff --git a/tcpdf_parser.php b/tcpdf_parser.php index 0159169..3b3d10e 100644 --- a/tcpdf_parser.php +++ b/tcpdf_parser.php @@ -1,9 +1,9 @@ * @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') {