This topic provides information about the following:
For more information, see Using ImageGear PDF Component and HIG_PDF_DICTIONARY and HIG_PDF_LAYER.
The following objects are related to PDF Layers and responsible for the visibility:
Each layer has a name and a visibility state for the containers connected to the layer through a Dictionary. The visibility state can have one of two values - ON or OFF.
Each dictionary contains the array of layers and a Boolean function, which takes all the layers' states as input and applies the visibility policy function to the layers' state values producing the Boolean result whether or not to display all the objects from the dictionary's container. The output can have one of two values - ON or OFF.
Each container is an arbitrary set of PDF elements or other containers. Each container is associated with a dictionary. The container and all its elements (including the other containers) are displayed when its dictionary's visibility policy Boolean function results with ON.
The following diagram shows the relationship between containers and the other PDF document objects:
The following diagram shows interconnection between PDF objects and layers:
Dictionary Boolean functions define the visibility policy. It can be one of the following:
In other words:
AllOn | All the containers from the dictionary will be displayed when all the input layers' states are 'ON' |
AnyOn | All the containers from the dictionary will be displayed when at least one of the input layers state is 'ON' |
AnyOff | All the containers from the dictionary will be displayed when at least one of the input layers state is 'OFF' |
AllOff | All the containers from the dictionary will be displayed when all the input layers' states are 'OFF' |
This section provides information about working with the PDF Demo (legacy) sample.