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

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

$_dictionary

The optional content group dictionary

$_indirectObject

The indirect object of this group

$_usage


Static Methods

createOCGDictionary()

public static Group::createOCGDictionary (
string $name,
string $encoding = 'UTF-8'
): \SetaPDF_Core_Type_Dictionary

Creates an optional content group dictionary.

Parameters
$name : string
 
$encoding : string
 

Methods

cleanUp()

public Group::cleanUp (
void
): void

Release memory / cycled references.

getDictionary()

Get the dictionary of the optional content group.

getIndirectObject()

Get an indirect object for this optional content group.

Parameters
$document : ?\SetaPDF_Core_Document
 
Exceptions

Throws \InvalidArgumentException

See

getName()

public Group::getName (
string $encoding = 'UTF-8'
): string

Get the name of the optional content group.

Parameters
$encoding : string
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

getResourceType()

public Group::getResourceType (
void
): string

Get the resource type for optional content groups.

See

setName()

public Group::setName (
string $name,
string $encoding = 'UTF-8'
): void

Set the name of the optional content group.

Parameters
$name : string
 
$encoding : string
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

usage()

Gets the usage helper class.