Sample Code - Adobe ACROBAT SDK 8.1 Manual

Developing plug-ins and applications
Table of Contents

Advertisement

Adobe Acrobat SDK
Developing Plug-ins and Applications
PDF Library SDK header files
The PDF Library SDK include directory contains headers for accessing the API methods. You can link to
these library files from within your development environment. Consult the documentation that
accompanies your development environment for information about linking to library files.
These files perform the same task in the PDF Library SDK as in the Acrobat SDK. For example, the
PDCalls.h provides HFT functionality for PD layer functions. For information, see
SDK library files" on page

Sample code

Samples are provided for the Windows, Mac OS, and UNIX, platforms in two forms:
Standalone sample programs
The SnippetRunner, an environment and infrastructure for code snippets that illustrate specific
functions or techniques.
Sample code is intended to demonstrate the use of the PDF Library API and is not necessarily robust
enough for a final implementation. The sample code itself is platform-independent, as is the majority of
the PDF Library API; the only difference between the sample source code for different platforms is the
line-endings.
The Mac OS samples are provided as application packages. This format is normal for double-clickable
applications, but they can also be run from the command line. To run them from the command line, you
can either specify the command line arguments in the Xcode project file and execute within the IDE, or
you can target the actual executable, which is in the Contents/MacOS folder inside the package. For
example, from the Terminal window:
$ cd helowrld.app/Contents/MacOS/
$ helowrld
The MT (multithreading) samples require command line arguments (a default set is added to the project
files). Therefore, execution from within the IDE is preferred. Also, for those samples you must use absolute
paths for the command line arguments.
Standalone samples
The following table lists the standalone sample applications that accompany the PDF Library SDK.
Sample application
addelem
all
CreatePattern
Decryption
drawtomemory
48.
Description
Shows how to modify existing pages in a PDF file. It adds a footer to
each page and shifts the first line of each text run.
Used to compile all samples at the same time. Available for Windows
and Mac OS only.
Shows how to create tiling patterns in a PDF document.
Shows how to programmatically decrypt a PDF document encrypted
with Acrobat standard security options.
Shows how to render a page to memory using the
PDPageDrawContentsToMemory
PDF file with a bitmap image rendered on the page.
Creating Plug-in and PDF Library Applications
Contents of the PDF Library SDK
"Including Acrobat
PDF Library method, and creates a
55

Advertisement

Table of Contents
loading

Table of Contents