Moodle  2.2.1
http://www.collinsharper.com
TCPDF_PARSER Class Reference

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()

Detailed Description

This is a PHP class for parsing PDF documents.

Definition at line 56 of file tcpdf_parser.php.


Constructor & Destructor Documentation

__construct ( data)

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 90 of file tcpdf_parser.php.

Here is the call graph for this function:


Member Function Documentation

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 445 of file tcpdf_parser.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Error ( msg)

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 494 of file tcpdf_parser.php.

Here is the caller graph for this function:

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 382 of file tcpdf_parser.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getObjectVal ( obj) [protected]

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 422 of file tcpdf_parser.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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 119 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 208 of file tcpdf_parser.php.

Here is the caller graph for this function:

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 131 of file tcpdf_parser.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

$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.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations