phpdftk API Documentation

Collection extends PdfObject
in package

PDF Collection dictionary (ISO 32000-2 Table 152).

Defines a PDF portfolio (collection of embedded files).

Example: $collection = new Collection(); $collection->view = new PdfName('D'); $writer->register($collection);

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

Table of Contents

Constants

PDF_TYPE  = 'Collection'

Properties

$d  : PdfName|null
$generationNumber  : int
$objectNumber  : int
$schema  : PdfReference|null
$sort  : PdfReference|null
$view  : PdfName|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