SetaPDF_Core_Document_CrossReferenceTable Class representing a cross-reference table
File: /SetaPDF v2/Core/Document/CrossReferenceTable.php
Class hierarchy
Summary
Properties
$_pointerToXref
protected int SetaPDF_Core_Document_CrossReferenceTable::$_pointerToXref
The pointer to the last written xref table
Methods
getCompressedStream()
public SetaPDF_Core_Document_CrossReferenceTable::getCompressedStream (): bool|SetaPDF_Core_Type_Stream
Get the cross-reference as a compressed stream object.
Parameters
- $value : SetaPDF_Core_Type_Dictionary
- $newPointerToXref : int
- $onlyUpdated : bool
getGenerationNumberByObjectId()
public SetaPDF_Core_Document_CrossReferenceTable::getGenerationNumberByObjectId (
int $objectId
): int|boolGet the generation number by an object id.
Parameters
- $objectId : int
getOffsetFor()
public SetaPDF_Core_Document_CrossReferenceTable::getOffsetFor (
int $objectId,
?int $generation = 0
): int|array|bool?int $generation = 0
Get an offset for an object.
Parameters
- $objectId : int
- $generation : ?int
setOffsetFor()
public SetaPDF_Core_Document_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