public class PdfActionOcgState extends Object
PdfAction.createSetOcgState(java.util.List)
.
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.Toggle
ocgs
- a list of the OCG dictionaries
public PdfName getState()
PdfName.OFF
, PdfName.ON
, PdfName.Toggle
public List<PdfDictionary> getOcgs()
Copyright © 1998–2016 iText Group NV. All rights reserved.