Class PDOptionalContentGroup
java.lang.Object
org.apache.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentGroup
- All Implemented Interfaces:
COSObjectable
This class represents an optional content group (OCG).
- Since:
- PDF 1.5
- Version:
- $Revision$
-
Constructor Summary
ConstructorsConstructorDescriptionPDOptionalContentGroup
(String name) Creates a new optional content group (OCG).Creates a new instance based on a givenCOSDictionary
. -
Method Summary
-
Constructor Details
-
PDOptionalContentGroup
Creates a new optional content group (OCG).- Parameters:
name
- the name of the content group
-
PDOptionalContentGroup
Creates a new instance based on a givenCOSDictionary
.- Parameters:
dict
- the dictionary
-
-
Method Details
-
getCOSObject
Convert this standard java object to a COS object.- Specified by:
getCOSObject
in interfaceCOSObjectable
- Returns:
- The cos object that matches this Java object.
-
getName
Returns the name of the optional content group.- Returns:
- the name
-
setName
Sets the name of the optional content group.- Parameters:
name
- the name
-
toString
-