\Smalot\PdfParserParser

Class Parser

Summary

Methods
Properties
Constants
__construct()
parseFile()
parseContent()
No public properties found
No constants found
parseTrailer()
parseObject()
parseHeader()
parseHeaderElement()
$objects
N/A
No private methods found
No private properties found
N/A

Properties

$objects

$objects : Object[]

Type

Object[]

Methods

__construct()

__construct()

parseFile()

parseFile(string $filename) : \Smalot\PdfParser\Document

Parse PDF file

Parameters

string $filename

Returns

\Smalot\PdfParser\Document

parseContent()

parseContent(string $content) : \Smalot\PdfParser\Document

Parse PDF content

Parameters

string $content

Returns

\Smalot\PdfParser\Document

parseTrailer()

parseTrailer( $structure,  $document)

Parameters

$structure
$document

parseObject()

parseObject(string $id, array $structure, \Smalot\PdfParser\Document $document)

Parameters

string $id
array $structure
\Smalot\PdfParser\Document $document

parseHeaderElement()

parseHeaderElement(mixed $type, mixed $value, mixed $document) : \Smalot\PdfParser\Element|\Smalot\PdfParser\Header

Parameters

mixed $type
mixed $value
mixed $document

Throws

\Exception

Returns

\Smalot\PdfParser\Element|\Smalot\PdfParser\Header