public class PdfActionOcgState extends Object
PdfAction.createSetOcgState(java.util.List<com.itextpdf.kernel.pdf.action.PdfActionOcgState>).| Constructor and Description |
|---|
PdfActionOcgState(PdfName state,
List<PdfDictionary> ocgs)
Constructs an optional content state object.
|
| Modifier and Type | Method and Description |
|---|---|
List<PdfObject> |
getObjectList()
Gets a list of
PdfObject that is describing this particular optional content group states. |
List<PdfDictionary> |
getOcgs()
Gets a list of optional content groups that shall have the state changed
|
PdfName |
getState()
Gets the state the optional content groups should be switched to
|
public PdfActionOcgState(PdfName state, List<PdfDictionary> ocgs)
state - a PdfName describing the state. Shall be one of the following:
PdfName.OFF, PdfName.ON, PdfName.Toggleocgs - a list of the OCG dictionariespublic PdfName getState()
PdfName.OFF, PdfName.ON, PdfName.Togglepublic List<PdfDictionary> getOcgs()
Copyright © 1998–2020 iText Group NV. All rights reserved.