Class PDAppearanceEntry

java.lang.Object
org.apache.pdfbox.pdmodel.interactive.annotation.PDAppearanceEntry
All Implemented Interfaces:
COSObjectable

public class PDAppearanceEntry extends Object implements COSObjectable
An entry in an appearance dictionary. May contain either a single appearance stream or an appearance subdictionary.
  • Field Details

  • Constructor Details

    • PDAppearanceEntry

      private PDAppearanceEntry()
    • PDAppearanceEntry

      public PDAppearanceEntry(COSBase entry)
      Constructor for reading.
      Parameters:
      entry -
  • Method Details

    • getCOSObject

      public COSBase getCOSObject()
      Description copied from interface: COSObjectable
      Convert this standard java object to a COS object.
      Specified by:
      getCOSObject in interface COSObjectable
      Returns:
      The cos object that matches this Java object.
    • isSubDictionary

      public boolean isSubDictionary()
      Returns true if this entry is an appearance subdictionary.
    • isStream

      public boolean isStream()
      Returns true if this entry is an appearance stream.
    • getAppearanceStream

      public PDAppearanceStream getAppearanceStream()
      Returns the entry as an appearance stream.
      Throws:
      IllegalStateException - if this entry is not an appearance stream
    • getSubDictionary

      public Map<COSName,PDAppearanceStream> getSubDictionary()
      Returns the entry as an appearance subdictionary.
      Throws:
      IllegalStateException - if this entry is not an appearance subdictionary