Package com.itextpdf.kernel.pdf.action
Class PdfActionOcgState
java.lang.Object
com.itextpdf.kernel.pdf.action.PdfActionOcgState
This is a helper class for optional content states use in Set-OCG-State actions. See
PdfAction.createSetOcgState(java.util.List)
.
-
Constructor Summary
ConstructorDescriptionPdfActionOcgState
(PdfName state, List<PdfDictionary> ocgs) Constructs an optional content state object. -
Method Summary
-
Constructor Details
-
PdfActionOcgState
Constructs an optional content state object.- Parameters:
-
state
- aPdfName
describing the state. Shall be one of the following:PdfName.OFF
,PdfName.ON
,PdfName.Toggle
-
ocgs
- a list of the OCG dictionaries
-
-
Method Details
-
getState
Gets the state the optional content groups should be switched to- Returns:
-
the state, one of the following:
PdfName.OFF
,PdfName.ON
,PdfName.Toggle
-
getOcgs
Gets a list of optional content groups that shall have the state changed- Returns:
- the list of optional content groups
-
getObjectList
Gets a list ofPdfObject
that is describing this particular optional content group states.
-