|
Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
|
Class representing a PDF stream object. More...
Public Member Functions | |
| getFilters () | |
| Get all filters defined for this stream. | |
| getStream ($cache=false) | |
| Get the stream data. | |
| getUnfilteredStream () | |
| Get the unfiltered stream data. | |
Static Public Member Functions | |
| static | create (PdfDictionary $dictionary, $stream) |
| Helper method to create an instance. | |
| static | ensure ($stream) |
| Ensures that the passed value is a PdfStream instance. | |
| static | flatten (PdfType $value, PdfParser $parser) |
| Flatten indirect object references to direct objects. | |
| static | parse (PdfDictionary $dictionary, StreamReader $reader, PdfParser $parser=null) |
| Parses a stream from a stream reader. | |
| 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. | |
Protected Member Functions | |
| extractStream () | |
| Extract the stream "manually". | |
Static Protected Member Functions | |
| static | ensureType ($type, $value, $errorMessage) |
| Ensure that a value is an instance of a specific PDF type. | |
Protected Attributes | |
| PdfParser | $parser |
| The PDF parser instance. | |
| StreamReader null | $reader |
| The stream reader instance. | |
| int string | $stream |
| The stream or its byte-offset position. | |
Class representing a PDF stream object.
|
static |
Helper method to create an instance.
| PdfDictionary | $dictionary | |
| string | $stream |
| self |
|
static |
Ensures that the passed value is a PdfStream instance.
| mixed | $stream |
| self |
| PdfTypeException |
|
staticprotectedinherited |
Ensure that a value is an instance of a specific PDF type.
| string | $type | |
| PdfType | $value | |
| string | $errorMessage |
| mixed |
| PdfTypeException |
|
protected |
Flatten indirect object references to direct objects.
| PdfType |
| CrossReferenceException | |
| PdfParserException |
| PdfStream::getFilters | ( | ) |
| PdfStream::getStream | ( | $cache = false | ) |
Get the stream data.
| bool | $cache | Whether cache the stream data or not. |
| bool|string |
| PdfStream::getUnfilteredStream | ( | ) |
|
static |
Parses a stream from a stream reader.
| PdfDictionary | $dictionary | |
| StreamReader | $reader | |
| PdfParser | $parser | Optional to keep backwards compatibility |
| 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 |