|
Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
|
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 | flatten (PdfType $value, PdfParser $parser) |
| Flatten indirect object references to direct objects. | |
| 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 |
Flatten indirect object references to direct objects.
| PdfType |
| CrossReferenceException | |
| PdfParserException |
|
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 |