setasign\Fpdi\PdfParser\Type
PdfDictionary Class representing a PDF dictionary object
File: /FPDI v2/PdfParser/Type/PdfDictionary.php
Class hierarchy
Summary
Properties
Static Methods
create()
Helper method to create an instance.
Parameters
- $entries: PdfType[]
The keys are the name entries of the dictionary.
ensure()
Ensures that the passed value is a PdfDictionary instance.
Parameters
- $dictionary: mixed
Exceptions
Throws PdfTypeException
ensureType()
Ensure that a value is an instance of a specific PDF type.
Parameters
- $type: string
- $value: PdfType
- $errorMessage: string
Exceptions
Throws PdfTypeException
flatten()
Flatten indirect object references to direct objects.
Parameters
- $value: PdfType
- $parser: \setasign\Fpdi\PdfParser\PdfParser
Exceptions
Throws \setasign\Fpdi\PdfParser\CrossReference\CrossReferenceException
get()
Get a value by its key from a dictionary or a default value.
Parameters
- $dictionary: mixed
- $key: string
- $default: ?PdfType
Exceptions
Throws PdfTypeException
parse()
\setasign\Fpdi\PdfParser\StreamReader $streamReader,
\setasign\Fpdi\PdfParser\PdfParser $parser
Parses a dictionary of the passed tokenizer, stream-reader and parser.
Parameters
- $tokenizer: \setasign\Fpdi\PdfParser\Tokenizer
- $streamReader: \setasign\Fpdi\PdfParser\StreamReader
- $parser: \setasign\Fpdi\PdfParser\PdfParser
Exceptions
Throws PdfTypeException
resolve()
Resolves a PdfType value to its value.
This method is used to evaluate indirect and direct object references until a final value is reached.
Parameters
- $value: PdfType
- $parser: \setasign\Fpdi\PdfParser\PdfParser
- $stopAtIndirectObject: bool
Exceptions
Throws \setasign\Fpdi\PdfParser\CrossReference\CrossReferenceException
