Click or drag to resize

Config Class

The OCG::Config object represents an optional-content (OC) configuration structure (see section 4.10.3 in PDF Reference), used to persist a set of visibility states and other optional-content information in a PDF file A document has a default configuration, saved in the D entry in the 'OCProperties' dictionary (that can be obtained using pdfdoc.GetOCConfig()), and can have a list of other configurations, saved as an Array in the 'Configs' entry in the OCProperties dictionary.

Configurations are typically used to initialize the OCG ON-OFF states for an optional-content context (OCG::Context). The OCG order in the configuration is the order in which the groups appear in the Layers panel of a PDF viewer. The configuration can also define a set of mutually exclusive OCGs, called a radio button group.

Inheritance Hierarchy
SystemObject
  pdftron.PDF.OCGConfig

Namespace:  pdftron.PDF.OCG
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public sealed class Config

The Config type exposes the following members.

Constructors
  NameDescription
Public methodConfig
Creates a new optional-content configuration from an existing SDF Cos object.
Top
Methods
  NameDescription
Public methodStatic memberCreate
Creates a new optional-content configuration from an existing SDF/Cos object.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetCreator
Gets the creator.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetInitBaseState
Gets the inits the base state.
Public methodGetInitOffStates
Gets the inits the off states.
Public methodGetInitOnStates
Gets the inits the on states.
Public methodGetIntent
Gets the intent.
Public methodGetLockedOCGs
Gets the locked oc gs.
Public methodGetName
Gets the name.
Public methodGetOrder
Gets the order.
Public methodGetSDFObj
Gets the SDFObj.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSetCreator
Sets the creator property of an optional-content configuration. Stores the specified string as the Creator entry in the configuration's SDF/Cos dictionary.
Public methodSetInitBaseState
Sets the base initialization state. For more info, please see GetInitBaseState().
Public methodSetInitOffStates
Sets the 'OFF' initialization Array in the configuration dictionary. For more info, please see SetInitOffStates() and section 4.10.3 in PDF Reference.
Public methodSetInitOnStates
Sets the 'ON' initialization Array in the configuration dictionary. For more info, please see SetInitOnStates() and section 4.10.3 in PDF Reference.
Public methodSetIntent
Sets the Intent entry in an optional-content configuration's SDF/Cos dictionary. For more information, see GetIntent().
Public methodSetLockedOCGs
Sets the Array of locked OCGs. The on/off state of a locked OCG cannot be toggled by the user through the user interface.
Public methodSetName
Sets the name of an optional-content configuration (suitable for presentation in a user interface). The method stores the specified string as the Name entry in the configuration's SDF/Cos dictionary.
Public methodSetOrder
Sets the user interface display order of optional-content groups (OCGs) in this configuration. This is the order in which the group names are displayed in the Layers panel of a PDF viewer.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also