
Adobe Acrobat SDK
Introduction
Developing Plug-ins and Applications
New Acrobat core APIs 25
●
Digital signatures
●
2D barcode decoding
●
Comments can be added, deleted, modified, copied, imported, exported, uploaded, downloaded, and
summarized
Adobe Reader plug-ins
Adobe Reader only accepts Reader-enabled plug-ins. For information, see
“Creating an Adobe Reader
Plug-In” on page 245
.
You may want your Reader-enabled plug-in to access APIs that are available when the plug-in is running
with Acrobat but not when running with Adobe Reader. Use the
ASGetConfiguration
method to
check whether Acrobat or Adobe Reader is running, and invoke these APIs only if your plug-in is running
with Acrobat. Failure to do so exposes the user to a variety of error messages. You can display a message to
the user by invoking the
AVAlertNote
method. For information, see the
Acrobat and PDF Library API
Reference
.
If such a plug-in is loaded under Adobe Reader, it notify the user that it cannot function fully, then proceed
in one of several ways:
●
Not load.
●
Omit toolbar buttons and menu items that enable editing.
●
Display disabled (grayed-out) toolbar buttons and menu items that enable editing.
Plug-ins that need to check whether or not they are running under Adobe Reader should do so as early in
initialization as possible. Plug-ins that create and manipulate custom annotations should allow their
annotations to be displayed (they cannot be created, deleted, or edited) when running under Adobe
Reader.
New Acrobat core APIs
Over 60 new APIs were added to the Acrobat 8 SDK and the total number of APIs available to plug-in
developers is now approximately 2200. Some APIs—including new and existing—will only work with
certain configurations of Acrobat 8 and not with others. Refer to the
Acrobat and PDF Library API Reference
for details on which APIs work on your Acrobat or Adobe Reader configuration.
The following table lists the new APIs introduced in Acrobat 8.
AFPDFieldGetDefaultTextAppearanceEx
AFPDFieldSetDefaultTextAppearanceEx
AFRegisterFormUIFrameworkHandler
AFUnregisterFormUIFrameworkHandler
ASFileSysGetStorageFreeSpace64
ASFileSysIsLocal
ASGetDefaultFileSysForPath
ASGetDefaultUnicodeFileSys
ASGetErrorStringASText
ASRegisterErrorStringASText
AVAppGetAnnotAppearancePadding
AVDocSaveOptimized
AVGetOptimizerPresets
AVGetOptimizerParamsForPreset
AVMenuItemIsScriptable
AVSysTrackMouse
CosSetExternalFilePermissionProc
PDAnnotGetTitleASText