|
Moodle PHP Documentation 4.4
Moodle 4.4.9+ (Build: 20250711) (4ea86454947)
|
Class LineReader. More...
Public Member Functions | ||||||
| __construct (PdfParser $parser) | ||||||
| LineReader constructor. | ||||||
| getOffsetFor ($objectNumber) | ||||||
Get an offset by an object number.
| ||||||
| getOffsets () | ||||||
| Get all found offsets. | ||||||
| getTrailer () | ||||||
| Get the trailer dictionary. | ||||||
| getTrailer () | ||||||
| Get the trailer related to this cross reference. | ||||||
Protected Member Functions | |
| extract (StreamReader $reader) | |
| Extracts the cross reference data from the stream reader. | |
| read ($xrefContent) | |
| Read the cross-reference entries. | |
| readTrailer () | |
| Read the trailer dictionary. | |
Protected Attributes | |
| array | $offsets |
| The object offsets. | |
| PdfParser | $parser |
| PdfDictionary | $trailer |
Class LineReader.
This reader class read all cross-reference entries in a single run. It supports reading cross-references with e.g. invalid data (e.g. entries with a length < or > 20 bytes).
| LineReader::__construct | ( | PdfParser | $parser | ) |
LineReader constructor.
| PdfParser | $parser |
| CrossReferenceException |
Reimplemented from AbstractReader.
|
protected |
Extracts the cross reference data from the stream reader.
| StreamReader | $reader |
| string |
| CrossReferenceException |
| LineReader::getOffsetFor | ( | $objectNumber | ) |
Get an offset by an object number.
| int | $objectNumber |
| int|bool | False if the offset was not found. |
| int|false |
Implements ReaderInterface.
| LineReader::getOffsets | ( | ) |
Get all found offsets.
| array |
|
inherited |
Get the trailer dictionary.
| PdfDictionary |
|
inherited |
Get the trailer related to this cross reference.
| PdfDictionary |
|
protected |
|
protectedinherited |
Read the trailer dictionary.
| CrossReferenceException | |
| PdfTypeException |