OCMD
extends PdfObject
in package
PDF Optional Content Membership Dictionary (ISO 32000-2 Table 97).
Determines visibility based on the state of one or more OCGs.
Example: $ocmd = new OCMD(); $ocmd->ocgs = new PdfArray([new PdfReference($ocg->objectNumber)]); $ocmd->p = new PdfName('AnyOn');
Attributes
- #[RequiresPdfVersion]
- \Phpdftk\Pdf\Core\PdfVersion::V1_5
Table of Contents
Constants
- PDF_TYPE = 'OCMD'
Properties
- $generationNumber : int
- $objectNumber : int
- $ocgs : PdfArray|null
- $p : PdfName|null
- $ve : PdfArray|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
PDF_TYPE
public
mixed
PDF_TYPE
= 'OCMD'
Properties
$generationNumber
public
int
$generationNumber
= 0
$objectNumber
public
int
$objectNumber
= 0
$ocgs
public
PdfArray|null
$ocgs
= null
$p
public
PdfName|null
$p
= null
$ve
public
PdfArray|null
$ve
= null
Methods
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