|
ILIAS
Release_4_4_x_branch Revision 61816
|
This is a PHP class for parsing PDF documents. More...
Collaboration diagram for TCPDF_PARSER:Public Member Functions | |
| __construct ($data) | |
| Parse a PDF document an return an array of objects. | |
| getParsedData () | |
| Return an array of parsed PDF document objects. | |
| Error ($msg) | |
| This method is automatically called in case of fatal error; it simply outputs the message and halts the execution. | |
Protected Member Functions | |
| getXrefData ($offset=0, $xref=array()) | |
| Get Cross-Reference (xref) table and trailer data from PDF document data. | |
| decodeXref ($startxref, $xref=array()) | |
| Decode the Cross-Reference section. | |
| decodeXrefStream ($startxref, $xref=array()) | |
| Decode the Cross-Reference Stream section. | |
| getRawObject ($offset=0) | |
| Get object type, raw value and offset to next object. | |
| getIndirectObject ($obj_ref, $offset=0, $decoding=true) | |
| Get content of indirect object. | |
| getObjectVal ($obj) | |
| Get the content of object, resolving indect object reference if necessary. | |
| decodeStream ($sdic, $stream) | |
| Decode the specified stream. | |
Protected Attributes | |
| $xref = array() | |
| XREF data. | |
| $objects = array() | |
| Array of PDF objects. | |
Private Attributes | |
| $pdfdata = '' | |
| Raw content of the PDF document. | |
| $FilterDecoders | |
| Class object for decoding filters. | |
| TCPDF_PARSER::__construct | ( | $data | ) |
Parse a PDF document an return an array of objects.
| $data | (string) PDF data to parse. |
Definition at line 88 of file tcpdf_parser.php.
References Error(), getIndirectObject(), and getXrefData().
Here is the call graph for this function:
|
protected |
Decode the specified stream.
| $sdic | (array) Stream's dictionary array. |
| $stream | (string) Stream to decode. |
Definition at line 684 of file tcpdf_parser.php.
References getObjectVal().
Referenced by getIndirectObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Decode the Cross-Reference section.
| $startxref | (int) Offset at which the xref section starts. |
| $xref | (array) Previous xref array (if any). |
Definition at line 171 of file tcpdf_parser.php.
References $xref, Error(), and getXrefData().
Referenced by getXrefData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Decode the Cross-Reference Stream section.
| $startxref | (int) Offset at which the xref section starts. |
| $xref | (array) Previous xref array (if any). |
Definition at line 240 of file tcpdf_parser.php.
References $columns, $row, $xref, Error(), getIndirectObject(), getRawObject(), and getXrefData().
Referenced by getXrefData().
Here is the call graph for this function:
Here is the caller graph for this function:| TCPDF_PARSER::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 736 of file tcpdf_parser.php.
Referenced by __construct(), decodeXref(), decodeXrefStream(), getIndirectObject(), and getXrefData().
Here is the caller graph for this function:
|
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 621 of file tcpdf_parser.php.
References decodeStream(), Error(), and getRawObject().
Referenced by __construct(), decodeXrefStream(), and getObjectVal().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Get the content of object, resolving indect object reference if necessary.
| $obj | (string) Object value. |
Definition at line 661 of file tcpdf_parser.php.
References getIndirectObject().
Referenced by decodeStream().
Here is the call graph for this function:
Here is the caller graph for this function:| TCPDF_PARSER::getParsedData | ( | ) |
Return an array of parsed PDF document objects.
Definition at line 118 of file tcpdf_parser.php.
|
protected |
Get object type, raw value and offset to next object.
| $offset | (int) Object offset. |
Definition at line 444 of file tcpdf_parser.php.
Referenced by decodeXrefStream(), and getIndirectObject().
Here is the caller graph for this function:
|
protected |
Get Cross-Reference (xref) table and trailer data from PDF document data.
| $offset | (int) xref offset (if know). |
| $xref | (array) previous xref array (if any). |
Definition at line 130 of file tcpdf_parser.php.
References $xref, decodeXref(), decodeXrefStream(), and Error().
Referenced by __construct(), decodeXref(), and decodeXrefStream().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Class object for decoding filters.
Definition at line 78 of file tcpdf_parser.php.
|
protected |
Array of PDF objects.
Definition at line 72 of file tcpdf_parser.php.
|
private |
Raw content of the PDF document.
Definition at line 60 of file tcpdf_parser.php.
|
protected |
XREF data.
Definition at line 66 of file tcpdf_parser.php.
Referenced by decodeXref(), decodeXrefStream(), and getXrefData().