phpdftk API Documentation

OCPropertiesDict extends PdfObject
in package

PDF Optional Content Properties Dictionary (ISO 32000-2 Table 100).

The /OCProperties entry in the Catalog. Contains all OCGs and the default viewing configuration.

Example: $ocProps = new OCPropertiesDict($ocgsArray, $defaultConfig); $writer->register($ocProps); $catalog->ocProperties = new PdfReference($ocProps->objectNumber);

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

Table of Contents

Properties

$configs  : PdfArray|null
$d  : PdfDictionary
$generationNumber  : int
$objectNumber  : int
$ocgs  : PdfArray

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