AppearanceDictionary

AppearanceDictionary

Overview

AppearanceDictionary is a class in Aspose.PDF FOSS for Java.

Typed view over a form field’s {@code /AP} appearance dictionary (ISO 32000-1:2008 §12.5.5).

This class provides 6 methods for working with AppearanceDictionary objects in Java programs. Available methods include: AppearanceDictionary, get, getCOSDictionary, getNormal, getStateNames, isMultiState. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: cOSDictionary, multiState, normal, stateNames.

Properties

NameTypeAccessDescription
stateNamesSet<String>ReadReturns the set of state names available under {@code /N} (normal
appearance) for multi-state widgets.
normalXFormReadReturns the single normal appearance stream for a single-state widget
(text fields, buttons, etc.), or {@code null} if the field is
multi-state or has no /N entry.
multiStatebooleanReadReturns {@code true} when {@code /AP/N} is a dictionary (multi-state),
{@code false} when it is a stream (single-state) or absent.
cOSDictionaryCOSDictionaryReadReturns the underlying /AP COS dictionary for engine-side use.

Methods

SignatureDescription
AppearanceDictionary(apDict: COSDictionary)Wraps the given /AP dictionary.
getStateNames()Set<String>Returns the set of state names available under {@code /N} (normal
appearance) for multi-state widgets.
get(stateName: String)XFormReturns the normal appearance stream for the given state, or {@code null}
if the state name is not present or if the field is single-state.
getNormal()XFormReturns the single normal appearance stream for a single-state widget
(text fields, buttons, etc.), or {@code null} if the field is
multi-state or has no /N entry.
isMultiState()booleanReturns {@code true} when {@code /AP/N} is a dictionary (multi-state),
{@code false} when it is a stream (single-state) or absent.
getCOSDictionary()COSDictionaryReturns the underlying /AP COS dictionary for engine-side use.

See Also