SetaPDF_Core_Document_OptionalContent_Group An optional content group
File: /SetaPDF v2/Core/Document/OptionalContent/Group.php
Class hierarchy
Implements
Summary
Constants
TYPE_COLOR_SPACE
Type constant
TYPE_EXT_G_STATE
Type constant
TYPE_FONT
Type constant
TYPE_PATTERN
Type constant
TYPE_PROC_SET
Type constant
TYPE_PROPERTIES
Type constant
TYPE_SHADING
Type constant
TYPE_X_OBJECT
Type constant
Properties
$_indirectObject
protected SetaPDF_Core_Type_IndirectObjectInterface SetaPDF_Core_Document_OptionalContent_Group::$_indirectObject
The indirect object of this group
$_usage
protected SetaPDF_Core_Document_OptionalContent_Group_Usage SetaPDF_Core_Document_OptionalContent_Group::$_usage
A usage helper class
Static Methods
createOCGDictionary()
public static SetaPDF_Core_Document_OptionalContent_Group::createOCGDictionary (
string $name [, string $encoding = 'UTF-8' ]
): SetaPDF_Core_Type_DictionaryCreates an optional content group dictionary.
Parameters
- $name : string
- $encoding : string
Methods
__construct()
public SetaPDF_Core_Document_OptionalContent_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 SetaPDF_Core_Type_Exception
See
getDictionary()
public SetaPDF_Core_Document_OptionalContent_Group::getDictionary (
void
): SetaPDF_Core_Type_DictionaryGet the dictionary of the optional content group.
getIndirectObject()
public SetaPDF_Core_Document_OptionalContent_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
getName()
public SetaPDF_Core_Document_OptionalContent_Group::getName (
[ string $encoding = 'UTF-8' ]
): stringGet the name of the optional content group.
Parameters
- $encoding : string
Exceptions
Throws SetaPDF_Core_Type_Exception
setName()
public SetaPDF_Core_Document_OptionalContent_Group::setName (
string $name [, string $encoding = 'UTF-8' ]
): voidSet the name of the optional content group.
Parameters
- $name : string
- $encoding : string
Exceptions
Throws SetaPDF_Core_Type_Exception
usage()
public SetaPDF_Core_Document_OptionalContent_Group::usage (
void
): SetaPDF_Core_Document_OptionalContent_Group_UsageGets the usage helper class.