Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
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 | 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::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 |