
Adobe Acrobat SDK
Creating Plug-in and PDF Library Applications
Developing Plug-ins and Applications
Developing applications with the Adobe PDF Library 56
SnippetRunner application
SnippetRunner allows you to quickly prototype code containing PDF Library API calls without the
overhead of writing and verifying a complete application. It provides an infrastructure and utility functions
to support execution and testing of code snippets, which are small but complete portions of PDF Library
application code.
SnippetRunner consists of these major components:
●
An application that acts as a back-end server and that provides the basic functionality, including a
parameter input mechanism, debug support, and exception handling.
●
A graphical user interface that acts as a client to the back-end server. (This user interface, called the
Common User Interface, is also provided with the Acrobat SDK, which uses an Acrobat plug-in for its
back end.)
For more information about SnippetRunner, see the
Snippet Runner Cookbook
.
Developing applications with the Adobe PDF Library
This section details the compiler environment variables (macros) required to build applications against the
Adobe PDF Library. On all platforms, you must define the PRODUCT macro for the preprocessor.
PRODUCT=\"Library.h\"
This macro is used as a trigger for conditional compilation and allows the same headers to be used for
both the Acrobat core API and the Adobe PDF Library.
fontembd
Shows font enumeration and font embedding.
helowrld
Shows the basics of creating a PDF document.
JPXEncode
Re-encodes PDF embedded images with the JPX filter and writes out a
new PDF file with the re-encoded images embedded.
mergepdf
Shows how to merge two PDF files.
MTInMemFS
Demonstrates use of an in-memory file system for a simple workflow
within a multithreaded context.
MTSerialNums
Demonstrates creation of multiple threads to simultaneously generate
multiple PDFs.
MTTextExtract
Demonstrates multiple threads concurrently processing multiple PDF
documents.
Peddler
Shows how to add hyperlinking (specifically targeting URIs) capabilities
to an existing PDF document.
printpdf
Shows how to print a PDF file to a printer or to a file using the PDF
Library method PDFLPrintDoc.
Sample application
Description