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).

This class provides 8 methods for working with SetOCGStateAction objects in Java programs. Available methods include: SetOCGStateAction, fromDictionary, getNext, getPdfDictionary, getState, getType, isPreserveRB, setState. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: next, pdfDictionary, preserveRB, state, type.

Properties

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

Methods

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

See Also

 English