Table of contents
Namespace: Com\Tecnick\Pdf\Parser
Extends: Xref
File: Parser.php line 42
PHP class for parsing PDF documents.
Tags
- since: 2011-05-23
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2011-2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-pdf-parser
- SuppressWarnings: (“PHPMD.ExcessiveClassComplexity”)
- phpstan-import-type: RawObjectArray from \Com\Tecnick\Pdf\Parser\Process\RawObject
- phpstan-import-type: XrefData from \Com\Tecnick\Pdf\Parser\Process\XrefStream
Constants
DEFAULT_MAX_STREAM_SIZE
File: Parser.php line 47
public mixed DEFAULT_MAX_STREAM_SIZE = 33554432
Methods
__construct()
File: Parser.php line 94
public __construct([array<string, bool|int> $cfg = [] ]) : mixed
Parameters
- $cfg : array<string, bool|int> = []: Configuration parameters: ‘ignore_filter_errors’: if true, ignore filter decoding errors; ‘decode_streams’: if true, decode stream payloads while parsing regular indirect objects; ‘max_stream_size’: maximum size in bytes of a single decoded stream, 0 means unlimited.
parse()
File: Parser.php line 121
public parse(string $data) : RawObjectArray>>}
Parameters
- $data : string: PDF data to parse.
Tags
- throws: Exception
Return values
RawObjectArray»}