import v1.1.0_RC2 | 2009-09-20

This commit is contained in:
2019-07-17 22:19:00 +02:00
parent 3b7ba80568
commit 38c146901c
2504 changed files with 101817 additions and 62316 deletions

View File

@ -12,9 +12,11 @@
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Pdf
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: StringParser.php 17532 2009-08-10 19:04:14Z alexander $
*/
@ -63,15 +65,12 @@ require_once 'Zend/Pdf/Element/Reference/Table.php';
/** Zend_Pdf_ElementFactory_Interface */
require_once 'Zend/Pdf/ElementFactory/Interface.php';
/** Zend_Pdf_PhpArray */
require_once 'Zend/Pdf/PhpArray.php';
/**
* PDF string parser
*
* @package Zend_Pdf
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_StringParser
@ -244,7 +243,21 @@ class Zend_Pdf_StringParser
*/
public function readLexeme()
{
$this->skipWhiteSpace();
// $this->skipWhiteSpace();
while (true) {
$this->offset += strspn($this->data, "\x00\t\n\f\r ", $this->offset);
if ($this->data[$this->offset] == '%') {
preg_match('/[\r\n]/', $this->data, $matches, PREG_OFFSET_CAPTURE, $this->offset);
if (count($matches) > 0) {
$this->offset += strlen($matches[0][0]) + $matches[0][1];
} else {
$this->offset = strlen($this->data);
}
} else {
break;
}
}
if ($this->offset >= strlen($this->data)) {
return '';