This is a PHP class for parsing PDF documents.
More...
|
| __construct ($data) |
| Parse a PDF document an return an array of objects. More...
|
|
| getParsedData () |
| Return an array of parsed PDF document objects. More...
|
|
| Error ($msg) |
| This method is automatically called in case of fatal error; it simply outputs the message and halts the execution. More...
|
|
This is a PHP class for parsing PDF documents.
Definition at line 54 of file tcpdf_parser.php.
Parse a PDF document an return an array of objects.
- Parameters
-
$data | (string) PDF data to parse. |
- Since
- 1.0.000 (2011-05-24)
Definition at line 88 of file tcpdf_parser.php.
decodeStream |
( |
|
$sdic, |
|
|
|
$stream |
|
) |
| |
|
protected |
Decode the specified stream.
- Parameters
-
$sdic | (array) Stream's dictionary array. |
$stream | (string) Stream to decode. |
- Returns
- array containing decoded stream data and remaining filters.
- Since
- 1.0.000 (2011-06-22)
Definition at line 452 of file tcpdf_parser.php.
This method is automatically called in case of fatal error; it simply outputs the message and halts the execution.
- Parameters
-
$msg | (string) The error message |
- Since
- 1.0.000 (2011-05-23)
Definition at line 501 of file tcpdf_parser.php.
getIndirectObject |
( |
|
$obj_ref, |
|
|
|
$offset = 0 , |
|
|
|
$decoding = true |
|
) |
| |
|
protected |
Get content of indirect object.
- Parameters
-
$obj_ref | (string) Object number and generation number separated by underscore character. |
$offset | (int) Object offset. |
$decoding | (boolean) If true decode streams. |
- Returns
- array containing object data.
- Since
- 1.0.000 (2011-05-24)
Definition at line 389 of file tcpdf_parser.php.
Get the content of object, resolving indect object reference if necessary.
- Parameters
-
$obj | (string) Object value. |
- Returns
- array containing object data.
- Since
- 1.0.000 (2011-06-26)
Definition at line 429 of file tcpdf_parser.php.
Return an array of parsed PDF document objects.
- Returns
- (array) Array of parsed PDF document objects.
- Since
- 1.0.000 (2011-06-26)
Definition at line 117 of file tcpdf_parser.php.
getRawObject |
( |
|
$offset = 0 | ) |
|
|
protected |
Get object type, raw value and offset to next object.
- Parameters
-
$offset | (int) Object offset. |
- Returns
- array containing object type, raw value and offset to next object
- Since
- 1.0.000 (2011-06-20)
Definition at line 215 of file tcpdf_parser.php.
getXrefData |
( |
|
$offset = 0 , |
|
|
|
$xref = array() |
|
) |
| |
|
protected |
Get xref (cross-reference table) and trailer data from PDF document data.
- Parameters
-
$offset | (int) xref offset (if know). |
$xref | (array) previous xref array (if any). |
- Returns
- Array containing xref and trailer data.
- Since
- 1.0.000 (2011-05-24)
Definition at line 129 of file tcpdf_parser.php.
The documentation for this class was generated from the following file: