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
PDF_TYPE
public
mixed
PDF_TYPE
= 'OBJR'
Properties
$generationNumber
public
int
$generationNumber
= 0
$obj
public
PdfReference|null
$obj
= null
$objectNumber
public
int
$objectNumber
= 0
$pg
public
PdfReference|null
$pg
= null
Methods
toIndirectObject()
Wrap the object in an indirect object structure: X Y obj ... endobj
public
toIndirectObject() : string
Return values
stringtoPdf()
Serialize the object's dictionary/value to PDF syntax.
public
toPdf() : string