Class PDOptionalContentGroup

  • All Implemented Interfaces:
    COSObjectable

    public class PDOptionalContentGroup
    extends PDPropertyList
    An optional content group (OCG).
    • Field Summary

      • Fields inherited from class org.apache.pdfbox.pdmodel.documentinterchange.markedcontent.PDPropertyList

        dict
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Returns the name of the optional content group.
      void setName​(java.lang.String name)
      Sets the name of the optional content group.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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