TCPDF_PARSER
class TCPDF_PARSER (View source)
Properties
protected | $xref | XREF data. |
|
protected | $objects | Array of PDF objects. |
Methods
Parse a PDF document an return an array of objects.
Set the configuration parameters.
Return an array of parsed PDF document objects.
Get Cross-Reference (xref) table and trailer data from PDF document data.
Decode the Cross-Reference section
Decode the Cross-Reference Stream section
Get object type, raw value and offset to next object
Get content of indirect object.
Get the content of object, resolving indect object reference if necessary.
Decode the specified stream.
Throw an exception or print an error message and die if the K_TCPDF_PARSER_THROW_EXCEPTION_ERROR constant is set to true.
Details
__construct(string $data, array $cfg = array())
Parse a PDF document an return an array of objects.
protected
setConfig(array $cfg)
Set the configuration parameters.
array
getParsedData()
Return an array of parsed PDF document objects.
protected array
getXrefData(int $offset = 0, array $xref = array())
Get Cross-Reference (xref) table and trailer data from PDF document data.
protected array
decodeXref(int $startxref, array $xref = array())
Decode the Cross-Reference section
protected array
decodeXrefStream(int $startxref, array $xref = array())
Decode the Cross-Reference Stream section
protected array
getRawObject(int $offset = 0)
Get object type, raw value and offset to next object
protected array
getIndirectObject(string $obj_ref, int $offset = 0, bool $decoding = true)
Get content of indirect object.
protected array
getObjectVal(string $obj)
Get the content of object, resolving indect object reference if necessary.
protected array
decodeStream(array $sdic, string $stream)
Decode the specified stream.
Error(string $msg)
Throw an exception or print an error message and die if the K_TCPDF_PARSER_THROW_EXCEPTION_ERROR constant is set to true.