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
$fields
public
PdfDictionary
$fields
$generationNumber
public
int
$generationNumber
= 0
$objectNumber
public
int
$objectNumber
= 0
Methods
__construct()
public
__construct() : mixed
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