The PDFlib Cookbook

The PDFlib Cookbook is a collection of PDFlib coding fragments for solving specific problems. It is maintained as a growing list of sample programs. The Cookbook topics are offered in Java and PHP versions, but can easily be ported to other programming languages since the PDFlib API is almost identical for all supported language bindings. Each Cookbook topic denotes the PDFlib product required for its execution.

Browse all PDFlib Cookbook Topics

Each topic can be viewed individually in the browser together with its source code, description and output PDF. For a complete list of all topics currently being available, see Browse all Topics.

For the most recently published and newest topics see the change log.

Download full PDFlib Cookbook Package

The PDFlib Cookbook package for Java contains the Java files and all required input data, as well as an Ant build file and an Eclipse project. The Cookbook topcis can conveniently be compiled and run with the Java build tool Apache Ant. For more information, see ant.apache.org. Alternatively, you can manually compile and run the samples.

The PDFlib Cookbook package for PHP contains the PHP scripts and all required input data, as well as an index.html overview page and a build.php script for executing all samples

As a prerequisite for compiling and executing the PDFlib Cookbook topics the PDFlib binary library for Java or PHP must be installed. You can download the appropriate PDFlib 9 evaluation package here.

Download the PDFlib Cookbook archives. Unpack the archive and open the "doc/readme.txt" file for further information on installing and working with the PDFlib Cookbook.

For the most recent changes, see the change log.