setasign\SetaPDF2\Core\Document
CrossReferenceTable Class representing a cross-reference table
File: /SetaPDF v2/Core/Document/CrossReferenceTable.php
Old class name (alias):
\SetaPDF_Core_Document_CrossReferenceTable
Class hierarchy
Summary
Properties
$_pointerToXref
protected int CrossReferenceTable::$_pointerToXref
The pointer to the last written xref table
Methods
getCompressedStream()
Get the cross-reference as a compressed stream object.
Parameters
- $value : \SetaPDF_Core_Type_Dictionary
- $newPointerToXref : int
- $onlyUpdated : bool
getGenerationNumberByObjectId()
Get the generation number by an object id.
Parameters
- $objectId : int
setOffsetFor()
public CrossReferenceTable::setOffsetFor (
int $objectId,
int $generation,
int|array $offset
): voidint $generation,
int|array $offset
Set an object offset.
Parameters
- $objectId : int
- $generation : int
- $offset : int|array
writeNormal()
Writes the cross-reference to a writer.
Parameters
- $writer : \SetaPDF_Core_Writer_WriterInterface
- $onlyUpdated : bool