setasign\Fpdi\PdfParser\CrossReference

LineReader Class LineReader

File: /FPDI v2/PdfParser/CrossReference/LineReader.php

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).

Class hierarchy

Implements

Summary

Properties

$offsets

protected array LineReader::$offsets

The object offsets.


Methods

__construct()

LineReader constructor.

Parameters
$parser : \setasign\Fpdi\PdfParser\PdfParser
 
Exceptions

Throws CrossReferenceException

extract()

Extracts the cross reference data from the stream reader.

Parameters
$reader : \setasign\Fpdi\PdfParser\StreamReader
 
Exceptions

Throws CrossReferenceException

getOffsetFor()

public LineReader::getOffsetFor (
int $objectNumber
): int|false

Get an offset by an object number.

Parameters
$objectNumber : int
 

getOffsets()

public LineReader::getOffsets (
void
): array

Get all found offsets.

getTrailer()

Get the trailer dictionary.

read()

protected LineReader::read (
string $xrefContent
): void

Read the cross-reference entries.

Parameters
$xrefContent : string
 
Exceptions

Throws CrossReferenceException

readTrailer()

protected AbstractReader::readTrailer (
void
): void

Read the trailer dictionary.

Exceptions

Throws CrossReferenceException

Throws \setasign\Fpdi\PdfParser\Type\PdfTypeException