PDFlib Cookbook

cookbook

Source Code Cookbook for the PDFlib Product Family

The PDFlib Cookbook is a collection of PDFlib coding fragments for solving specific PDF creation problems. It is maintained as a list of sample programs. PDFlib Cookbook topics are offered in Java and PHP versions, but can easily be ported to other programming languages since the PDFlib API is identical for all supported language bindings. The Cookbook topics can be used with products of the PDFlib family as follows:

  • All Cookbook topics can be used with PDFlib, PDFlib+PDI and PPS.
  • Cookbook topics in the category PDF Import require PDFlib+PDI or PPS.
  • Cookbook topics in the category Block Handling and PPS require PPS.
  • Examples for the pCOS interface are presented in the pCOS Cookbook; they require PDFlib+PDI or PPS, or another product which includes the pCOS interface, i.e. PDFlib TET, PDFlib PLOP or PDFlib PLOP DS.

All Cookbook topics can be used with the free PDFlib evaluation packages.

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 available topics see Browse all Topics.

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

PDFlib Cookbook for Java

The PDFlib Cookbook package for Java contains the Java source files and sample 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. Alternatively, you can manually compile and run the samples.

The PDFlib Cookbook package contains an Eclipse project file that allows the direct import of the Cookbook into an Eclipse workspace.

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

Download the PDFlib Cookbook package for Java:

PDFlib-cookbook-2017-08.zip

PDFlib-cookbook-2017-08.tar.gz

PDFlib Cookbook for PHP

The PDFlib Cookbook package for PHP contains the PHP scripts and sample 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 PHP must be installed. You can download the appropriate PDFlib evaluation package here.

Download the PDFlib Cookbook package for PHP:

PDFlib-PHP-cookbook-2017-08.zip

PDFlib-PHP-cookbook-2017-08.tar.gz