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 written in the Java language, but can easily be ported to other programming languages since the PDFlib API is almost identical for all supported language bindings. For some topics, code in other languages like PHP or C is provided. Each Cookbook topic denotes the PDFlib product required for its execution.
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.
The PDFlib Cookbook packages 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. Form more information, see ant.apache.org. Alternatively, you can manually compile and run the samples. A separate file is availabla for all the PHP samples.
As a prerequisite for compiling and executing the PDFlib Cookbook topics the PDFlib binary library for Java must have been installed. You can download the appropriate PDFlib 9 evaluation package here.
Download the PDFlib Cookbooks archives released on March, 2013. 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.
If you are still using PDFlib 8 or if you are using PDFlib Lite, you can download the Cookbook archives released on May 9, 2012: