|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct ($data) | |
| getParsedData () | |
| Error ($msg) | |
Protected Member Functions | |
| getXrefData ($offset=0, $xref=array()) | |
| getRawObject ($offset=0) | |
| getIndirectObject ($obj_ref, $offset=0, $decoding=true) | |
| getObjectVal ($obj) | |
| decodeStream ($sdic, $stream) | |
Protected Attributes | |
| $xref = array() | |
| $objects = array() | |
This is a PHP class for parsing PDF documents.
Definition at line 56 of file tcpdf_parser.php.
| __construct | ( | $ | data | ) |
Parse a PDF document an return an array of objects.
| $data | (string) PDF data to parse. |
Definition at line 90 of file tcpdf_parser.php.

| decodeStream | ( | $ | sdic, |
| $ | stream | ||
| ) | [protected] |
Decode the specified stream.
| $sdic | (array) Stream's dictionary array. |
| $stream | (string) Stream to decode. |
Definition at line 445 of file tcpdf_parser.php.


| Error | ( | $ | msg | ) |
This method is automatically called in case of fatal error; it simply outputs the message and halts the execution.
| $msg | (string) The error message |
Definition at line 494 of file tcpdf_parser.php.

| getIndirectObject | ( | $ | obj_ref, |
| $ | offset = 0, |
||
| $ | decoding = true |
||
| ) | [protected] |
Get content of indirect object.
| $obj_ref | (string) Object number and generation number separated by underscore character. |
| $offset | (int) Object offset. |
| $decoding | (boolean) If true decode streams. |
Definition at line 382 of file tcpdf_parser.php.


| getObjectVal | ( | $ | obj | ) | [protected] |
Get the content of object, resolving indect object reference if necessary.
| $obj | (string) Object value. |
Definition at line 422 of file tcpdf_parser.php.


| getParsedData | ( | ) |
Return an array of parsed PDF document objects.
Definition at line 119 of file tcpdf_parser.php.
| getRawObject | ( | $ | offset = 0 | ) | [protected] |
Get object type, raw value and offset to next object
| $offset | (int) Object offset. |
Definition at line 208 of file tcpdf_parser.php.

| getXrefData | ( | $ | offset = 0, |
| $ | xref = array() |
||
| ) | [protected] |
Get xref (cross-reference table) and trailer data from PDF document data.
| $offset | (int) xref offset (if know). |
| $xref | (array) previous xref array (if any). |
Definition at line 131 of file tcpdf_parser.php.


$objects = array() [protected] |
Array of PDF objects.
Definition at line 74 of file tcpdf_parser.php.
$xref = array() [protected] |
XREF data.
Definition at line 68 of file tcpdf_parser.php.