SetaPDF_Core_Document_CrossReferenceTable Class representing a cross-reference table
File: /SetaPDF v2/Core/Document/CrossReferenceTable.php
Class hierarchy
Summary
Properties
$_pointerToXref
protected integer SetaPDF_Core_Document_CrossReferenceTable::$_pointerToXref
The pointer to the last written xref table
Methods
getCompressedStream()
public SetaPDF_Core_Document_CrossReferenceTable::getCompressedStream (): boolean|SetaPDF_Core_Type_Stream
Get the cross reference as a compressed stream object.
Parameters
- $value : SetaPDF_Core_Type_Dictionary
- $newPointerToXref : integer
- $onlyUpdated : boolean
getGenerationNumberByObjectId()
public SetaPDF_Core_Document_CrossReferenceTable::getGenerationNumberByObjectId (
integer $objectId
): integer|booleanGet the generation number by an object id.
Parameters
- $objectId : integer
getOffsetFor()
public SetaPDF_Core_Document_CrossReferenceTable::getOffsetFor (
integer $objectId [, integer|null $generation = 0 ]
): integer|array|booleanGet an offset for an object.
Parameters
- $objectId : integer
- $generation : integer|null
setOffsetFor()
public SetaPDF_Core_Document_CrossReferenceTable::setOffsetFor (
integer $objectId, integer $generation, integer|array $offset
): voidSet an object offset.
Parameters
- $objectId : integer
- $generation : integer
- $offset : integer|array
writeNormal()
public SetaPDF_Core_Document_CrossReferenceTable::writeNormal (
SetaPDF_Core_Writer_WriterInterface $writer [, boolean $onlyUpdated = true ]
): integerWrites the cross reference to a writer.
Parameters
- $writer : SetaPDF_Core_Writer_WriterInterface
- $onlyUpdated : boolean