PEEL Shopping
Open source ecommerce : PEEL Shopping
Public Member Functions | Protected Member Functions | Protected Attributes
TCPDF_PARSER Class Reference

This is a PHP class for parsing PDF documents. More...

Public Member Functions

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

Protected Member Functions

 getXrefData ($offset=0, $xref=array())
 Get xref (cross-reference table) and trailer data from PDF document data. More...
 
 getRawObject ($offset=0)
 Get object type, raw value and offset to next object. More...
 
 getIndirectObject ($obj_ref, $offset=0, $decoding=true)
 Get content of indirect object. More...
 
 getObjectVal ($obj)
 Get the content of object, resolving indect object reference if necessary. More...
 
 decodeStream ($sdic, $stream)
 Decode the specified stream. More...
 

Protected Attributes

 $xref = array()
 XREF data. More...
 
 $objects = array()
 Array of PDF objects. More...
 

Detailed Description

This is a PHP class for parsing PDF documents.


Definition at line 54 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 88 of file tcpdf_parser.php.

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

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.

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

getParsedData ( )

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.

Field Documentation

$objects = array()
protected

Array of PDF objects.

Definition at line 72 of file tcpdf_parser.php.

$xref = array()
protected

XREF data.

Definition at line 66 of file tcpdf_parser.php.


The documentation for this class was generated from the following file:

This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:41:44 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.