Adobe PDF Library

Working with the Adobe PDF Library

Building and Running Sample Jobs for Windows and UNIX

Each product, Adobe PDF Library, DLI, and the Java and .NET Interface, provides a collection of sample programs illustrating various tasks. Each sample is stored within its own subdirectory under the product folder on Windows platforms:

  • C:\Datalogics\APDFLxxx\APDFL\Samples
  • C:\Datalogics\APDFLxxx\DLI\Samples
  • C:\Datalogics\APDFLxxx\DotNET_and_Java\Samples

You can use the makefile.W32 included with each sample to build the job via the NMAKE command, or, in Windows, you can build applications via the supported development software for the Windows platforms, Microsoft Visual Studio.

Building via Visual Studio

You can quickly open the project files for all sample applications at once by locating the /All subfolders under Adobe PDF Library:
C:\Datalogics\APDFLxxx\APDFL\Samples\All\all.sln

Building via nmake

To compile and link a selected sample yourself, set your default to its subdirectory and issue the command:
nmake /f makefile.W32
This will compile and link the sample in a new Release subdirectory under the current sample location.

In order to execute the sample program from the current directory, specify the path to the executable, or drop down into the Release subdirectory to run it.

Some samples include referenced files that are located in the data directory. These samples need to be run from the original sample directory with the release path included with the executable:
release\sample.exe
For example, in order to run the APDFL addimage sample job you must type:
release\addimage.exe
This is found in the C:\Datalogics\APDFLxxx\APDFL\Samples\addimage directory.

The program expects the data files to be in a location relative to the sample source directory, not relative to the Release directory.