Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250530) (c39b7370636)
|
Class representing a PDF string object. More...
Static Public Member Functions | |
static | create ($value) |
Helper method to create an instance. | |
static | ensure ($string) |
Ensures that the passed value is a PdfString instance. | |
static | escape ($s) |
Escapes sequences in a string according to the PDF specification. | |
static | flatten (PdfType $value, PdfParser $parser) |
Flatten indirect object references to direct objects. | |
static | parse (StreamReader $streamReader) |
Parses a string object from the stream reader. | |
static | resolve (PdfType $value, PdfParser $parser, $stopAtIndirectObject=false) |
Resolves a PdfType value to its value. | |
static | unescape ($s) |
Unescapes escaped sequences in a PDF string according to the PDF specification. | |
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 string object.
|
static |
Helper method to create an instance.
string | $value | The string needs to be escaped accordingly. |
self |
|
static |
Ensures that the passed value is a PdfString instance.
mixed | $string |
self |
PdfTypeException |
|
staticprotectedinherited |
Ensure that a value is an instance of a specific PDF type.
string | $type | |
PdfType | $value | |
string | $errorMessage |
mixed |
PdfTypeException |
|
static |
Escapes sequences in a string according to the PDF specification.
string | $s |
string |
Flatten indirect object references to direct objects.
PdfType |
CrossReferenceException | |
PdfParserException |
|
static |
Parses a string object from the stream reader.
StreamReader | $streamReader |
self |
|
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 |
|
static |
Unescapes escaped sequences in a PDF string according to the PDF specification.
string | $s |
string |