| Modifier and Type | Class and Description |
|---|---|
| public static enum | PDOptionalContentProperties.
Enumeration for the BaseState dictionary entry on the "D" dictionary. |
| Modifier and Type | Field and Description |
|---|---|
| private final COSDictionary |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PDOptionalContentProperties(COSDictionary
the dictionary props)Creates a new instance based on a given |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public PDOptionalContentProperties. | |
| public COSDictionary | getCOSObject()
Implements org. Convert this standard java object to a COS object. |
| private COSDictionary | |
| public PDOptionalContentGroup | |
| public String[] | |
| private COSArray | |
| public Collection | Returns: the optional content groupsReturns the collection of all optional content groups. |
| public boolean | |
| public boolean | Returns: true if at least one group is enabledthe group name groupName)Indicates whether at least one optional content group with this name is enabled. |
| public boolean | Returns: true if the group is enabledthe group object group)Indicates whether an optional content group is enabled. |
| public void | setBaseState(PDOptionalContentProperties.
the base state stateSets the base state for optional content groups. |
| public boolean | Returns: true if at least one group with this name already had an on or off setting, false otherwisethe group name groupName, boolean true to enable, false to disable enable)Enables or disables all optional content groups with the given name. |
| public boolean | Returns: true if the group already had an on or off setting, false otherwisethe group object group, boolean true to enable, false to disable enable)Enables or disables an optional content group. |
| private COSDictionary |
| dict | back to summary |
|---|---|
| private final COSDictionary dict | |
| PDOptionalContentProperties | back to summary |
|---|---|
| public PDOptionalContentProperties() Creates a new optional content properties dictionary. | |
| PDOptionalContentProperties | back to summary |
|---|---|
| public PDOptionalContentProperties(COSDictionary props) Creates a new instance based on a given
| |
| addGroup | back to summary |
|---|---|
| public void addGroup(PDOptionalContentGroup ocg) Adds an optional content group (OCG).
| |
| getBaseState | back to summary |
|---|---|
| public PDOptionalContentProperties. Returns the base state for optional content groups.
| |
| getCOSObject | back to summary |
|---|---|
| public COSDictionary getCOSObject() Implements org. Doc from org. Convert this standard java object to a COS object.
| |
| getD | back to summary |
|---|---|
| private COSDictionary getD() | |
| getGroup | back to summary |
|---|---|
| public PDOptionalContentGroup getGroup(String name) Returns the first optional content group of the given name.
| |
| getGroupNames | back to summary |
|---|---|
| public String[] getGroupNames() Lists all optional content group names.
| |
| getOCGs | back to summary |
|---|---|
| private COSArray getOCGs() | |
| getOptionalContentGroups | back to summary |
|---|---|
| public Collection Returns the collection of all optional content groups.
| |
| hasGroup | back to summary |
|---|---|
| public boolean hasGroup(String groupName) Indicates whether a particular optional content group is found in the PDF file.
| |
| isGroupEnabled | back to summary |
|---|---|
| public boolean isGroupEnabled(String groupName) Indicates whether at least one optional content group with this name is enabled. There may be disabled optional content groups with this name even if this function returns true.
| |
| isGroupEnabled | back to summary |
|---|---|
| public boolean isGroupEnabled(PDOptionalContentGroup group) Indicates whether an optional content group is enabled.
| |
| setBaseState | back to summary |
|---|---|
| public void setBaseState(PDOptionalContentProperties. Sets the base state for optional content groups.
| |
| setGroupEnabled | back to summary |
|---|---|
| public boolean setGroupEnabled(String groupName, boolean enable) Enables or disables all optional content groups with the given name.
| |
| setGroupEnabled | back to summary |
|---|---|
| public boolean setGroupEnabled(PDOptionalContentGroup group, boolean enable) Enables or disables an optional content group.
| |
| toDictionary | back to summary |
|---|---|
| private COSDictionary toDictionary(COSBase o) | |
| Modifier and Type | Field and Description |
|---|---|
| private final COSName | name
Hides java. |
| public static final PDOptionalContentProperties. | OFF
The "OFF" value. |
| public static final PDOptionalContentProperties. | ON
The "ON" value. |
| public static final PDOptionalContentProperties. | UNCHANGED
The "Unchanged" value. |
| Modifier and Type | Method and Description |
|---|---|
| public COSName | |
| public static PDOptionalContentProperties. | |
| public static PDOptionalContentProperties. | |
| public static PDOptionalContentProperties. |
| name | back to summary |
|---|---|
| private final COSName name Hides java. | |
| OFF | back to summary |
|---|---|
| public static final PDOptionalContentProperties. The "OFF" value. | |
| ON | back to summary |
|---|---|
| public static final PDOptionalContentProperties. The "ON" value. | |
| UNCHANGED | back to summary |
|---|---|
| public static final PDOptionalContentProperties. The "Unchanged" value. | |
| BaseState | back to summary |
|---|---|
| private BaseState(COSName value) | |
| getName | back to summary |
|---|---|
| public COSName getName() Returns the PDF name for the state.
| |
| valueOf | back to summary |
|---|---|
| public static PDOptionalContentProperties. | |
| valueOf | back to summary |
|---|---|
| public static PDOptionalContentProperties. Returns the base state represented by the given
| |
| values | back to summary |
|---|---|
| public static PDOptionalContentProperties. | |