phpdftk API Documentation

ObjectRef extends PdfObject
in package

PDF Object Reference dictionary (ISO 32000-2 Table 326).

References a PDF object (such as an annotation or XObject) from the structure tree.

Example: $objRef = new ObjectRef(); $objRef->pg = new PdfReference($page->objectNumber); $objRef->obj = new PdfReference($annotation->objectNumber);

Attributes
#[RequiresPdfVersion]
\Phpdftk\Pdf\Core\PdfVersion::V1_5

Table of Contents

Constants

PDF_TYPE  = 'OBJR'

Properties

$generationNumber  : int
$obj  : PdfReference|null
$objectNumber  : int
$pg  : PdfReference|null

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.

Constants

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 toPdf() : string
Return values
string

        
On this page

Search results