Moodle PHP Documentation 4.1
Moodle 4.1.19 (Build: 20250609) (a0a0458154d)
|
Class representing a PDF dictionary object. More...
Static Public Member Functions | |
static | create (array $entries=[]) |
Helper method to create an instance. | |
static | ensure ($dictionary) |
Ensures that the passed value is a PdfDictionary instance. | |
static | get ($dictionary, $key, PdfType $default=null) |
Get a value by its key from a dictionary or a default value. | |
static | parse (Tokenizer $tokenizer, StreamReader $streamReader, PdfParser $parser) |
Parses a dictionary of the passed tokenizer, stream-reader and parser. | |
static | resolve (PdfType $value, PdfParser $parser, $stopAtIndirectObject=false) |
Resolves a PdfType value to its value. | |
Public Attributes | |
mixed | $value |
The value of the PDF type. | |
Static Protected Member Functions | |
static | ensureType ($type, $value, $errorMessage) |
Ensure that a value is an instance of a specific PDF type. | |
Class representing a PDF dictionary object.
|
static |
Helper method to create an instance.
PdfType[] | $entries | The keys are the name entries of the dictionary. |
self |
|
static |
Ensures that the passed value is a PdfDictionary instance.
mixed | $dictionary |
self |
PdfTypeException |
|
staticprotectedinherited |
Ensure that a value is an instance of a specific PDF type.
string | $type | |
PdfType | $value | |
string | $errorMessage |
mixed |
PdfTypeException |
|
static |
Get a value by its key from a dictionary or a default value.
mixed | $dictionary | |
string | $key | |
PdfType | null | $default |
PdfNull|PdfType |
PdfTypeException |
|
static |
Parses a dictionary of the passed tokenizer, stream-reader and parser.
Tokenizer | $tokenizer | |
StreamReader | $streamReader | |
PdfParser | $parser |
bool|self |
PdfTypeException |
|
staticinherited |
Resolves a PdfType value to its value.
This method is used to evaluate indirect and direct object references until a final value is reached.
PdfType |
CrossReferenceException | |
PdfParserException |