Class PDOptionalContentGroup

  • All Implemented Interfaces:
    COSObjectable

    public class PDOptionalContentGroup
    extends PDPropertyList
    An optional content group (OCG).
    • Constructor Detail

      • PDOptionalContentGroup

        public PDOptionalContentGroup​(java.lang.String name)
        Creates a new optional content group (OCG).
        Parameters:
        name - the name of the content group
      • PDOptionalContentGroup

        public PDOptionalContentGroup​(COSDictionary dict)
        Creates a new instance based on a given COSDictionary.
        Parameters:
        dict - the dictionary
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the optional content group.
        Returns:
        the name
      • setName

        public void setName​(java.lang.String name)
        Sets the name of the optional content group.
        Parameters:
        name - the name
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object