setasign\Fpdi\PdfParser\CrossReference
CrossReference Class CrossReference
File: /FPDI v2/PdfParser/CrossReference/CrossReference.php
This class processes the standard cross reference of a PDF document.
Class hierarchy
Summary
Static Properties
Properties
Methods
__construct()
public CrossReference::__construct (
\setasign\Fpdi\PdfParser\PdfParser $parser [, $fileHeaderOffset = 0 ]
)CrossReference constructor.
Parameters
- $parser : \setasign\Fpdi\PdfParser\PdfParser
- $fileHeaderOffset
Exceptions
Throws CrossReferenceException
checkForEncryption()
protected CrossReference::checkForEncryption (
\setasign\Fpdi\PdfParser\Type\PdfDictionary $dictionary
): voidCheck for encryption.
Parameters
- $dictionary : \setasign\Fpdi\PdfParser\Type\PdfDictionary
Exceptions
Throws CrossReferenceException
findStartXref()
Find the start position for the first cross-reference.
Return Values
The byte-offset position of the first cross-reference.
Exceptions
Throws CrossReferenceException
getIndirectObject()
public CrossReference::getIndirectObject (
int $objectNumber
): \setasign\Fpdi\PdfParser\Type\PdfIndirectObjectGet an indirect object by its object number.
Parameters
- $objectNumber : int
Exceptions
Throws CrossReferenceException
initReaderInstance()
Get a cross-reference reader instance.
Parameters
Exceptions
Throws CrossReferenceException
readXref()
Read the cross-reference table at a given offset.
Internally the method will try to evaluate the best reader for this cross-reference.
Parameters
- $offset : int
Exceptions
Throws CrossReferenceException