
138
12
Creating Handlers
Adobe Reader and Acrobat plug-ins and PDF Library applications can add new types of tools, annotations,
actions, file systems, and so on, thereby expanding the number of supported object types. To accomplish
this task, the Acrobat core API provides a collection of callback routines called handlers that support
objects. Handlers perform operations, such as creating and destroy objects, handling mouse clicks,
handling keyboard events, and so on.
This chapter contains the following information.
About handlers
To add a new handler, you must write callback functions, create the appropriate data structure containing
the callbacks and other data, and pass the structure to Acrobat by invoking the appropriate method.
Subsequently, Acrobat automatically invokes the correct callback when it encounters an object of the type
handled by the handler.
Topic
Description
See
About handlers
Describes the characteristics of handlers.
page 138
Action handlers
Describes the characteristics of action handlers.
page 139
Annotation handlers
Describes the characteristics of annotation handlers.
page 140
AVCommand handlers
Describes the characteristics of AVCommand handlers.
page 140
File format conversion
handlers
Describes the characteristics of file format conversion
handlers.
page 145
File specification handlers
Describes the characteristics of file specification handlers.
page 146
Selection servers
Describes the characteristics of selection server handlers.
page 146
Tool callbacks
Describes the characteristics of tool callbacks.
page 147
Window handlers
Describes the characteristics of window handlers.
page 147
File systems
Describes the characteristics of file handlers.
page 148
Process monitors
Describes the characteristics of process monitors.
page 149
Transition handlers
Describes the characteristics of transition handlers.
page 149
Adding message handlers
Describes how to add Apple events and DDE messages.
page 150