phpdftk API Documentation

CollectionItem extends PdfObject
in package

PDF Collection Item dictionary.

Holds field values for a collection entry (PDF portfolio).

Example: $item = new CollectionItem(); $item->fields->set('FileName', new PdfString('report.pdf'));

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

Table of Contents

Properties

$fields  : PdfDictionary
$generationNumber  : int
$objectNumber  : int

Methods

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

        
On this page

Search results