
3
Contents
List of Examples ......................................................................................................................... 11
Preface ........................................................................................................................................ 14
What’s in this guide .....................................................................................................................................................................14
Who should read this guide? ...................................................................................................................................................14
Related documentation .............................................................................................................................................................14
1
Introduction ............................................................................................................................... 16
About plug-ins...............................................................................................................................................................................16
About the Acrobat core API......................................................................................................................................................17
Acrobat core API objects .....................................................................................................................................................18
Acrobat core API methods..................................................................................................................................................20
Data types.................................................................................................................................................................................21
About PDF Library and plug-in applications ......................................................................................................................23
Manipulating Acrobat Professional, Acrobat Standard, and Adobe Reader ....................................................23
Displaying a PDF document in an external window .................................................................................................23
Indexed searching .................................................................................................................................................................24
Modifying file access.............................................................................................................................................................24
Creating new annotation types ........................................................................................................................................24
Dynamically adding text to PDF documents ...............................................................................................................24
Understanding your target application ...............................................................................................................................24
New Acrobat core APIs ...............................................................................................................................................................25
2
Understanding Plug-ins ............................................................................................................ 27
About plug-in initialization.......................................................................................................................................................27
Plug-in loading and initialization .....................................................................................................................................28
Handshaking and Initialization .........................................................................................................................................28
Exporting HFTs........................................................................................................................................................................29
Importing HFTs and registering for notifications.......................................................................................................29
Initialization..............................................................................................................................................................................29
Unloading .................................................................................................................................................................................29
Summarizing a plug-in’s life cycle ...................................................................................................................................30
Using callback functions............................................................................................................................................................30
Notifications ...................................................................................................................................................................................31
Handling events............................................................................................................................................................................31
Mouse clicks .............................................................................................................................................................................31
Adjust cursor............................................................................................................................................................................31
Key presses ...............................................................................................................................................................................31