class | TCPDF_PARSER
This is a PHP class for parsing PDF documents. |
---|---|
package | com.tecnick.tcpdf |
brief | This is a PHP class for parsing PDF documents.. |
version | 1.0.15 |
author | Nicola Asuni - info@tecnick.com |
__construct(string $data,array $cfg = array())
public | |
---|---|
since | 1.0.000 (2011-05-24) |
string
PDF data to parse.
array
Array of configuration parameters: 'die_for_errors' : if true termitate the program execution in case of error, otherwise thows an exception; 'ignore_filter_decoding_errors' : if true ignore filter decoding errors; 'ignore_missing_filter_decoders' : if true ignore missing filter decoding errors.
decodeStream(array $sdic,string $stream): array
protected | |
---|---|
since | 1.0.000 (2011-06-22) |
array
Stream's dictionary array.
string
Stream to decode.
array
containing decoded stream data and remaining filters.
decodeXref(integer $startxref,array $xref = array()): array
protected | |
---|---|
since | 1.0.000 (2011-06-20) |
integer
Offset at which the xref section starts (position of the 'xref' keyword).
array
Previous xref array (if any).
array
containing xref and trailer data.
decodeXrefStream(integer $startxref,array $xref = array()): array
protected | |
---|---|
since | 1.0.003 (2013-03-16) |
integer
Offset at which the xref section starts.
array
Previous xref array (if any).
array
containing xref and trailer data.
Error(string $msg)
public | |
---|---|
since | 1.0.000 (2011-05-23) |
string
The error message
getIndirectObject(string $obj_ref,integer $offset,boolean $decoding = true): array
protected | |
---|---|
since | 1.0.000 (2011-05-24) |
string
Object number and generation number separated by underscore character.
integer
Object offset.
boolean
If true decode streams.
array
containing object data.
getObjectVal(string $obj): array
protected | |
---|---|
since | 1.0.000 (2011-06-26) |
string
Object value.
array
containing object data.
getParsedData(): array
public | |
---|---|
since | 1.0.000 (2011-06-26) |
array
Array of parsed PDF document objects.
getRawObject(integer $offset): array
protected | |
---|---|
since | 1.0.000 (2011-06-20) |
integer
Object offset.
array
containing object type, raw value and offset to next object
getXrefData(integer $offset,array $xref = array()): array
protected | |
---|---|
since | 1.0.000 (2011-05-24) |
integer
xref offset (if know).
array
previous xref array (if any).
array
containing xref and trailer data.
setConfig(array $cfg)
public | |
---|---|
array
Array of configuration parameters: 'die_for_errors' : if true termitate the program execution in case of error, otherwise thows an exception; 'ignore_filter_decoding_errors' : if true ignore filter decoding errors; 'ignore_missing_filter_decoders' : if true ignore missing filter decoding errors.
pdfdata :
private | |
---|---|
xref :
protected | |
---|---|
objects :
protected | |
---|---|
FilterDecoders :
private | |
---|---|
cfg :
private | |
---|---|