phpdftk API Documentation

ObjectRegistry
in package

Tracks all PdfObject instances and assigns sequential object numbers.

Numbering starts at 1 because object 0 is reserved by the PDF spec as the free-list head in the cross-reference table (ISO 32000-2 section 7.5.4). Generation numbers are always 0 for objects in a new document -- non-zero generations only appear in incremental updates that reuse deleted object numbers.

Table of Contents

Methods

getAll()  : array<int, PdfObject>
Return all registered objects, keyed by object number.
getSize()  : int
Return the total count of objects including the free list head (object 0).
register()  : int
Register a PdfObject, assign it an object number, and return that number.

Methods

getSize()

Return the total count of objects including the free list head (object 0).

public getSize() : int
Return values
int

register()

Register a PdfObject, assign it an object number, and return that number.

public register(PdfObject $object) : int
Parameters
$object : PdfObject
Return values
int

        
On this page

Search results