phpdftk API Documentation

PdfObject
in package
implements Serializable

AbstractYes

Base class for PDF objects that live as indirect objects (`X Y obj ... endobj`).

Every PdfObject gets an object number assigned by ObjectRegistry when registered with a writer. Unlike plain Serializable types (which serialize inline), PdfObjects can be referenced from anywhere in the document via PdfReference.

Table of Contents

Interfaces

Serializable
Contract for anything that can emit raw PDF syntax via `toPdf()`.

Properties

$generationNumber  : int
$objectNumber  : int

Methods

toIndirectObject()  : string
Wrap the object in an indirect object structure: X Y obj ... endobj
toPdf()  : string
Serialize the object's dictionary/value to PDF syntax.

Properties

$generationNumber

public int $generationNumber = 0

Methods

toIndirectObject()

Wrap the object in an indirect object structure: X Y obj ... endobj

public toIndirectObject() : string
Return values
string

toPdf()

Serialize the object's dictionary/value to PDF syntax.

public abstract toPdf() : string
Return values
string

        
On this page

Search results