TCPDF_PARSER
in package
Tags
Table of Contents
Methods
- __construct() : mixed
- Parse a PDF document an return an array of objects.
- Error() : mixed
- Throw an exception or print an error message and die if the K_TCPDF_PARSER_THROW_EXCEPTION_ERROR constant is set to true.
- getParsedData() : array<string|int, mixed>
- Return an array of parsed PDF document objects.
Methods
__construct()
Parse a PDF document an return an array of objects.
public __construct(string $data[,
array<string|int,
mixed> $cfg
= array()
]) : mixed
Parameters
- $data : string
-
PDF data to parse.
- $cfg : array<string|int, mixed> = 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.
Tags
Error()
Throw an exception or print an error message and die if the K_TCPDF_PARSER_THROW_EXCEPTION_ERROR constant is set to true.
public Error(string $msg)
: mixed
Parameters
- $msg : string
-
The error message
Tags
getParsedData()
Return an array of parsed PDF document objects.
public getParsedData()
: array<string|int,
mixed>
Tags
Return values
array<string|int, mixed> —Array of parsed PDF document objects.