Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
|
Class representing a PDF stream object. More...
Public Member Functions | |
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 | parse (PdfDictionary $dictionary, StreamReader $reader, PdfParser $parser=null) |
Parses a stream from a stream reader. | |
Protected Member Functions | |
extractStream () | |
Extract the stream "manually". | |
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 |
|
protected |
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 |