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
$configs
public
PdfArray|null
$configs
= null
$d
public
PdfDictionary
$d
$generationNumber
public
int
$generationNumber
= 0
$objectNumber
public
int
$objectNumber
= 0
$ocgs
public
PdfArray
$ocgs
Methods
__construct()
public
__construct(PdfArray $ocgs, PdfDictionary $defaultConfig) : mixed
Parameters
- $ocgs : PdfArray
- $defaultConfig : PdfDictionary
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