@@ 230-233 (lines=4) @@ | ||
227 | // name object |
|
228 | $objtype = $char; |
|
229 | ++$offset; |
|
230 | if (preg_match('/^([^\x00\x09\x0a\x0c\x0d\x20\s\x28\x29\x3c\x3e\x5b\x5d\x7b\x7d\x2f\x25]+)/', substr($this->pdfdata, $offset, 256), $matches) == 1) { |
|
231 | $objval = $matches[1]; // unescaped value |
|
232 | $offset += strlen($objval); |
|
233 | } |
|
234 | break; |
|
235 | } |
|
236 | case '(': // \x28 LEFT PARENTHESIS |
|
@@ 312-315 (lines=4) @@ | ||
309 | // hexadecimal string object |
|
310 | $objtype = $char; |
|
311 | ++$offset; |
|
312 | if (($char == '<') AND (preg_match('/^([0-9A-Fa-f]+)[>]/iU', substr($this->pdfdata, $offset), $matches) == 1)) { |
|
313 | $objval = $matches[1]; |
|
314 | $offset += strlen($matches[0]); |
|
315 | } |
|
316 | } |
|
317 | break; |
|
318 | } |
|
@@ 343-346 (lines=4) @@ | ||
340 | // start stream object |
|
341 | $objtype = 'stream'; |
|
342 | $offset += 6; |
|
343 | if (preg_match('/^[\r\n]+(.*)[\r\n]*endstream/isU', substr($this->pdfdata, $offset), $matches) == 1) { |
|
344 | $objval = $matches[1]; |
|
345 | $offset += strlen($matches[0]); |
|
346 | } |
|
347 | } elseif (substr($this->pdfdata, $offset, 9) == 'endstream') { |
|
348 | // end stream object |
|
349 | $objtype = 'endstream'; |