Adobe acrobat 7.0.5 sdk User Manual

Page of 122
117
Working With PDF Layers
Working with Layers from a Plug-in
15
Wo r k i n g   w i t h   L aye r s   f ro m   a   P l u g - i n
The 
PDOCG
 object represents an optional-content group. This corresponds to a PDF OCG 
dictionary representing a collection of graphic objects that can be made visible or invisible. 
Any graphic content of the PDF can be made optional, including page contents, XObjects, 
and annotations. The specific content objects in the group have an OC entry in the PDF.
Using 
PDOCG
 methods from a plug-in, you can:
Create a new OCG
Get and set the current state of an OCG
Get and set the initial OCG state
Get and set document configurations
For more information, see the Acrobat and PDF Library API Overview and the Acrobat and 
PDF Library API Reference
.