SetaPDF_Core_Parser_RawPdf A PDF parser for standard tokens.
File: /SetaPDF v2/Core/Parser/RawPdf.php
This class doesn't work with final object instances but only returns simple SetaPDF_Core_Type_Raw
instances
with raw extracted PDF data.
Class hierarchy
Summary
Constants
TYPE_ARRAY
A PDF type constant.
TYPE_BOOLEAN
A PDF type constant.
TYPE_DICTIONARY
A PDF type constant.
TYPE_HEX_STRING
A PDF type constant.
TYPE_NAME
A PDF type constant.
TYPE_NULL
A PDF type constant.
TYPE_NUMERIC
A PDF type constant.
TYPE_STRING
A PDF type constant.
TYPE_TOKEN
A PDF type constant.
Properties
Methods
__construct()
_readValue()
Read a value based on a token.
Parameters
- $token : string|null
Exceptions
Throws SetaPDF_Core_Parser_Pdf_InvalidTokenException
Throws SetaPDF_Core_Exception
Throws UnexpectedValueException
convertToObject()
Converts an SetaPDF_Core_Type_Raw instance into an object structure.
Parameters
- $data : SetaPDF_Core_Type_Raw
readValue()
Read a value.
Exceptions
Throws SetaPDF_Core_Parser_Pdf_InvalidTokenException
Throws SetaPDF_Core_Exception
Throws UnexpectedValueException
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.