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
| Name | Type | Access | Description |
|---|---|---|---|
state | PdfArray | Read | Returns the state change array. |
preserveRB | boolean | Read | Returns whether radio-button group relationships are preserved. |
pdfDictionary | PdfDictionary | Read | Returns the underlying action dictionary. |
type | String | Read | Returns the action type (/S entry). |
next | PdfAction | Read | Returns the next action (/Next), if any. |
Methods
| Signature | Description |
|---|---|
SetOCGStateAction(dict: PdfDictionary) | Parses a SetOCGStateAction from an existing dictionary. |
getState() → PdfArray | Returns the state change array. |
setState(state: PdfArray) | Sets the state change array. |
isPreserveRB() → boolean | Returns whether radio-button group relationships are preserved. |
getPdfDictionary() → PdfDictionary | Returns the underlying action dictionary. |
getType() → String | Returns the action type (/S entry). |
getNext() → PdfAction | Returns the next action (/Next), if any. |
fromDictionary(dict: PdfDictionary, doc: Document) → PdfAction | Factory: creates the appropriate PdfAction subclass from a dictionary. |