setasign\SetaPDF2\Core\Document\OptionalContent
Group An optional content group
File: /SetaPDF v2/Core/Document/OptionalContent/Group.php
Old class name (alias):
\SetaPDF_Core_Document_OptionalContent_Group
Class hierarchy
Implements
Summary
Constants
TYPE_COLOR_SPACE
public const string \setasign\SetaPDF2\Core\Resource\ResourceInterface::TYPE_COLOR_SPACE = 'ColorSpace'
Type constant
TYPE_EXT_G_STATE
public const string \setasign\SetaPDF2\Core\Resource\ResourceInterface::TYPE_EXT_G_STATE = 'ExtGState'
Type constant
TYPE_FONT
Type constant
TYPE_PATTERN
Type constant
TYPE_PROC_SET
Type constant
TYPE_PROPERTIES
public const string \setasign\SetaPDF2\Core\Resource\ResourceInterface::TYPE_PROPERTIES = 'Properties'
Type constant
TYPE_SHADING
Type constant
TYPE_X_OBJECT
Type constant
Properties
$_dictionary
protected \SetaPDF_Core_Type_Dictionary Group::$_dictionary
The optional content group dictionary
Static Methods
createOCGDictionary()
public static Group::createOCGDictionary (
string $name,
string $encoding = 'UTF-8'
): \SetaPDF_Core_Type_Dictionarystring $encoding = 'UTF-8'
Creates an optional content group dictionary.
Parameters
- $name : string
- $encoding : string
Methods
__construct()
public Group::__construct (
\SetaPDF_Core_Type_IndirectObjectInterface|\SetaPDF_Core_Type_Dictionary|string $ocgDictionary
)The constructor.
Parameters
- $ocgDictionary : \SetaPDF_Core_Type_IndirectObjectInterface|\SetaPDF_Core_Type_Dictionary|string
Exceptions
Throws \InvalidArgumentException
Throws \setasign\SetaPDF2\Core\Type\Exception
See
getIndirectObject()
public Group::getIndirectObject (
?\SetaPDF_Core_Document $document = null
): \SetaPDF_Core_Type_IndirectObjectInterfaceGet an indirect object for this optional content group.
Parameters
- $document : ?\SetaPDF_Core_Document
Exceptions
Throws \InvalidArgumentException
See
setName()
Set the name of the optional content group.
Parameters
- $name : string
- $encoding : string