SetaPDF_Core_Parser_Pdf A PDF parser
File: /SetaPDF v2/Core/Parser/Pdf.php
Class hierarchy
Summary
Properties
$_owner
The owner document
$_passOwningObjectToChilds
If set to true the owning object is passed to parsed child elements
This is needed to create a relation between a parsed object and its owning element. The complete chain will be able to get a relation to the owning document. Needed for example for handling en- and decryption of strings or streams.
Methods
__construct()
_ensureExpectedValue()
Ensures that the token will evaluate to an expected object type (or not).
Parameters
- $token : string
- $expectedType : string|null
Exceptions
_readValue()
Read a value based on a token.
Parameters
- $token : string|null
- $expectedType : string|null
Exceptions
Throws SetaPDF_Core_Parser_Pdf_InvalidTokenException
Throws SetaPDF_Core_Exception
Throws UnexpectedValueException
readValue()
Read a value.
Parameters
- $expectedType : string|null
Exceptions
Throws SetaPDF_Core_Exception
setOwner()
setPassOwningObjectToChilds()
Define if the owning object should be passed to it's childs.
Parameters
- $passOwningObjectToChilds : boolean
See
- $_passOwningObjectToChilds
setReader()
skipUntilToken()
Skips tokens until a special token is found.
This method can be used to e.g. jump over binary inline image data.
Parameters
- $token : string
- $inToken : bool
Defines if the token should match exactly or if a strpos should be used to find the token.