Class PDOptionalContentGroup

java.lang.Object
org.apache.pdfbox.pdmodel.documentinterchange.markedcontent.PDPropertyList
org.apache.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentGroup
All Implemented Interfaces:
COSObjectable

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

    • PDOptionalContentGroup

      public PDOptionalContentGroup(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 Details

    • getName

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

      public void setName(String name)
      Sets the name of the optional content group.
      Parameters:
      name - the name
    • getRenderState

      public PDOptionalContentGroup.RenderState getRenderState(RenderDestination destination)
      Parameters:
      destination - to be rendered
      Returns:
      state or null if undefined
    • toString

      public String toString()
      Overrides:
      toString in class Object