setasign\FpdiPdfParser\PdfParser\CrossReference

CompressedReader Class CompressedReader

File: /FPDI PDF-Parser v2/PdfParser/CrossReference/CompressedReader.php

This class reads a compressed cross-references stream.

Class hierarchy

Implements

  • \setasign\Fpdi\PdfParser\CrossReference\ReaderInterface

Summary

Properties

$fieldSizes

protected array CompressedReader::$fieldSizes = array()

The fields sizes (values from W entry).

$fieldsSize

The size of all fields (sum of W entry).

$offsets

protected array CompressedReader::$offsets = array()

$stream

protected \setasign\Fpdi\PdfParser\Type\PdfStream CompressedReader::$stream

$streamReader

protected \setasign\Fpdi\PdfParser\StreamReader CompressedReader::$streamReader

$subSections

protected array CompressedReader::$subSections = array()

$trailer

protected \setasign\Fpdi\PdfParser\Type\PdfDictionary CompressedReader::$trailer


Methods

__construct()

public CompressedReader::__construct (
\setasign\FpdiPdfParser\PdfParser\PdfParser $parser, \setasign\Fpdi\PdfParser\Type\PdfStream $stream
)

CompressedReader constructor.

Parameters
$parser : \setasign\FpdiPdfParser\PdfParser\PdfParser
 
$stream : \setasign\Fpdi\PdfParser\Type\PdfStream
 

getOffsetFor()

public CompressedReader::getOffsetFor (
int $objectNumber
): int|array|bool

Get an offset by an object number.

Parameters
$objectNumber : int
 
Return Values

False if the offset was not found.

getStreamReader()

protected CompressedReader::getStreamReader (
void
): \setasign\Fpdi\PdfParser\StreamReader

Get the stream reader for this stream.

getTrailer()

public CompressedReader::getTrailer (
void
): \setasign\Fpdi\PdfParser\Type\PdfDictionary

Get the trailer related to this cross reference.

read()

protected CompressedReader::read (
void
): void

Read the main cross-reference data.