Parser extends Xref
in package
Com\Tecnick\Pdf\Parser\Parser
PHP class for parsing PDF documents.
Tags
Table of Contents
Methods
- __construct() : mixed
- Initialize the PDF parser
- parse() : RawObjectArray>>}
- Parse a PDF document into an array of objects
Methods
__construct()
Initialize the PDF parser
public __construct([array<string,
bool> $cfg
= []
]) : mixed
Parameters
- $cfg : array<string, bool> = []
-
Array of configuration parameters: 'ignore_filter_decoding_errors' : if true ignore filter decoding errors; 'ignore_missing_filter_decoders' : if true ignore missing filter decoding errors.
parse()
Parse a PDF document into an array of objects
public parse(string $data)
:
RawObjectArray>>}
Parameters
- $data : string
-
PDF data to parse.