Documentation

CrossReference
in package

Class CrossReference

This class processes the standard cross reference of a PDF document.

Table of Contents

Properties

$trailerSearchLength  : int
The byte length in which the "startxref" keyword should be searched.
$fileHeaderOffset  : int
$parser  : PdfParser
$readers  : array<string|int, ReaderInterface>

Methods

__construct()  : mixed
CrossReference constructor.
getIndirectObject()  : PdfIndirectObject
Get an indirect object by its object number.
getOffsetFor()  : int|bool
Get the offset by an object number.
getReaders()  : array<string|int, ReaderInterface>
Get the cross reference readser instances.
getSize()  : int
Get the size of the cross reference.
getTrailer()  : PdfDictionary
Get the trailer dictionary.
checkForEncryption()  : mixed
Check for encryption.
findStartXref()  : int
Find the start position for the first cross-reference.
initReaderInstance()  : ReaderInterface|bool
Get a cross-reference reader instance.
readXref()  : ReaderInterface
Read the cross-reference table at a given offset.

Properties

$trailerSearchLength

The byte length in which the "startxref" keyword should be searched.

public static int $trailerSearchLength = 5500

Methods

getOffsetFor()

Get the offset by an object number.

public getOffsetFor(int $objectNumber) : int|bool
Parameters
$objectNumber : int
Return values
int|bool

getSize()

Get the size of the cross reference.

public getSize() : int
Return values
int

findStartXref()

Find the start position for the first cross-reference.

protected findStartXref() : int
Tags
throws
CrossReferenceException
Return values
int

The byte-offset position of the first cross-reference.


        
On this page

Search results