Справочник Пользователя для Adobe acrobat 7.0.5 sdk

Скачать
Страница из 122
Deciding Which Acrobat SDK Technology to Use
Samples Provided with the Acrobat SDK
3
34
S a m p l e s   P rov i d e d   w i t h   t h e   Ac ro b a t   S D K
The Acrobat SDK contains a large number of sample applications, plug-ins, and scripts to 
demonstrate how to use the SDK technologies.
N
O T E
:
Samples are regularly being added to the Acrobat SDK. Please refer to 
 for the current complete list of samples 
available for the Acrobat SDK.
Plug-in Samples
There are two types of plug-in samples in the Acrobat SDK: complete plug-ins and plug-in 
snippets. Complete plug-ins are stand-alone plug-ins that you can compile and run in 
Acrobat. Snippets are small fragments of code demonstrating how to use a single API that 
are run using the SnippetRunner plug-in.
Complete Plug-in Samples
The “Starter” and “BasicPlugin” samples provide the most basic frameworks for developing 
an Acrobat plug-in. The “DebugWindowADM” sample demonstrates how to build tools to 
help you debug your plug-in.
Plug-in Snippets Using SnippetRunner
The SnippetRunner plug-in provides infrastructure to snippets. It is accessed from 
Advanced > Acrobat SDK> AcroSDK Snippets. Each snippet can determine what context 
should exist before it is called. For example, a snippet that reports the type of the current 
selection does not need to open a document and set a selection before reporting its type—
it can assume the user has performed these tasks prior to invoking the snippet (the snippet 
should still check that a document has been opened, however). The snippet obtains the 
context from the utility code.
For more information, see the Guide to SDK Samples and the SnippetRunner Cookbook.