Skip to content


Repository files navigation


(Binaries are at )

Cpdflib is a library version of the Coherent PDF Command Line Tools, which are available from

It is licensed free for non-commercial use (see the file LICENSE in this directory).

Prerequisites for building:

  1. OCaml
  2. OCamlfind
  3. CamlPDF, same version as cpdflib
  4. CPDF, same version as cpdflib

To build, just run build or winbuild. This makes the static library libcpdf.a (or similar) and/or the dynamic library libcpdf.dll (or similar). In addition, it builds the libcpdftest binary using static and/or dynamic linking. This contains tests which exercise every libcpdf function.

The build script also outputs suitable linker flags to standard output.