![]() | Pdf |
The PdfOCGroup type exposes the following members.
Name | Description | |
---|---|---|
![]() | PdfOCGroup(PdfTypeBase) | Creates a new instance of PdfOCGroup and initialize it with specified dictionary |
![]() | PdfOCGroup(String) | Creates new instance of PdfOCGroup. |
Name | Description | |
---|---|---|
![]() | Intent | Gets or sets a combination of intent flags. |
![]() | Name | Gets or sets the name of the optional content group, suitable for presentation in a viewer application’s user interface. |
![]() | Usage | Gets or sets a usage object describing the nature of the content controlled by the group. It may be used by features that automatically control the state of the group based on outside factors. |
In its simplest form, each group contains a Name for presentation in a user interface. It may also have an Intent property that describes its intended use and a Usage property that describes the nature of its content.
Individual page objects in a document specify the optional content group or groups that affect their visibility. Any page object whose visibility can be affected by a given optional content group is said to belong to that group.
A group is assigned a state, which is either On or Off. States are not themselves part of the PDF document but can be set programmatically or through the viewer user interface to change the visibility of page object. When a document is first opened, the groups’ states are initialized based on the document’s Default configuration.
In the typical case, page object belonging to a group is visible when the group is On and invisible when it is Off. In more complex cases, page object can belong to multiple groups, which may have conflicting states. These cases are described by the use of PdfOCMembership class.