setasign\SetaPDF2\Core\Parser
RawPdf A PDF parser for standard tokens.
File: /SetaPDF v2/Core/Parser/RawPdf.php
Old class name (alias):
\SetaPDF_Core_Parser_RawPdf
This class doesn't work with final object instances but only returns simple \setasign\SetaPDF2\Core\Type\PdfRaw 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
TYPE_NULL
TYPE_NUMERIC
A PDF type constant.
TYPE_STRING
A PDF type constant.
TYPE_TOKEN
A PDF type constant.
Properties
$_reader
The reader class
$_tokenizer
The tokenizer
Methods
__construct()
_readValue()
Read a value based on a token.
Parameters
- $token : ?string
Exceptions
Throws Pdf\InvalidTokenException
Throws \setasign\SetaPDF2\Core\Exception
Throws \UnexpectedValueException
convertToObject()
Converts an \setasign\SetaPDF2\Core\Type\PdfRaw instance into an object structure.
Parameters
- $data : \SetaPDF_Core_Type_Raw
readValue()
Read a value.
Exceptions
Throws Pdf\InvalidTokenException
Throws \setasign\SetaPDF2\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.