SetOCGStateAction

SetOCGStateAction

Overview

SetOCGStateAction is a class in Aspose.Pdf FOSS for Java. Inherits from: PdfAction.

SetOCGState action — changes the state of Optional Content Groups (ISO 32000-1:2008, §12.6.4.12).

Properties

NameTypeAccessDescription
stateCOSArrayReadReturns the state change array.
preserveRBbooleanReadReturns whether radio-button group relationships are preserved.
cOSDictionaryCOSDictionaryReadReturns the underlying action dictionary.
typeStringReadReturns the action type (/S entry).
nextPdfActionReadReturns the next action (/Next), if any.

Methods

SignatureDescription
SetOCGStateAction(dict: COSDictionary)Parses a SetOCGStateAction from an existing dictionary.
getState()COSArrayReturns the state change array.
setState(state: COSArray)Sets the state change array.
isPreserveRB()booleanReturns whether radio-button group relationships are preserved.
getCOSDictionary()COSDictionaryReturns the underlying action dictionary.
getType()StringReturns the action type (/S entry).
getNext()PdfActionReturns the next action (/Next), if any.
fromDictionary(dict: COSDictionary, doc: Document)PdfActionFactory: creates the appropriate PdfAction subclass from a dictionary.

See Also