| @@ 349-367 (lines=19) @@ | ||
| 346 | } |
|
| 347 | ||
| 348 | break; |
|
| 349 | case '<<': |
|
| 350 | // This is a dictionary. |
|
| 351 | ||
| 352 | $result = array(); |
|
| 353 | ||
| 354 | // Recurse into this function until we reach |
|
| 355 | // the end of the dictionary. |
|
| 356 | while (($key = $this->pdf_read_token($c)) !== '>>') {
|
|
| 357 | if ($key === false) {
|
|
| 358 | return false; |
|
| 359 | } |
|
| 360 | ||
| 361 | if (($value = $this->pdf_read_value($c)) === false) {
|
|
| 362 | return false; |
|
| 363 | } |
|
| 364 | $result[$key] = $value; |
|
| 365 | } |
|
| 366 | ||
| 367 | return array (PDF_TYPE_DICTIONARY, $result); |
|
| 368 | ||
| 369 | case '[': |
|
| 370 | // This is an array. |
|
| @@ 369-388 (lines=20) @@ | ||
| 366 | ||
| 367 | return array (PDF_TYPE_DICTIONARY, $result); |
|
| 368 | ||
| 369 | case '[': |
|
| 370 | // This is an array. |
|
| 371 | ||
| 372 | $result = array(); |
|
| 373 | ||
| 374 | // Recurse into this function until we reach |
|
| 375 | // the end of the array. |
|
| 376 | while (($token = $this->pdf_read_token($c)) !== ']') {
|
|
| 377 | if ($token === false) {
|
|
| 378 | return false; |
|
| 379 | } |
|
| 380 | ||
| 381 | if (($value = $this->pdf_read_value($c, $token)) === false) {
|
|
| 382 | return false; |
|
| 383 | } |
|
| 384 | ||
| 385 | $result[] = $value; |
|
| 386 | } |
|
| 387 | ||
| 388 | return array (PDF_TYPE_ARRAY, $result); |
|
| 389 | ||
| 390 | case '(' :
|
|
| 391 | // This is a string |
|