CPDF is distributed under the AGPL - see LICENSE.md. If you are unable to abide by the terms of the AGPL, you will need a commercial license.
For commercial licenses, email contact@coherentgraphics.co.uk or visit https://www.coherentpdf.com/
Copyright Coherent Graphics Ltd 2024.
This code builds two things:
a) The CPDF PDF command line tool for editing PDF files.
b) cpdf as an OCaml library, for which documentation is here:
The OCaml compiler
The camlpdf library
http://github.com/johnwhitington/camlpdf
The ocamlfind library manager
http://projects.camlcity.org/projects/findlib.html
If you are using the OPAM package manager:
these can be installed by:
opam install camlpdf
If downloading from Github, obtain the correct source. This means choosing the tag for a particular version, such as "v2.7.2". The head of the master branch is unstable.
Type make
to make the cpdf executable and the library
Type make install
to install the OCaml cpdf library.
The cpdf
executable should be manually placed somewhere suitable.
Alternatively, the library and command-line binary can be installed by
opam install cpdf
The file cpdfmanual.pdf
in this folder is the documentation for the command
line tools. The documentation for the cpdf OCaml library is in doc/html/cpdf/
in this folder once the library has been built.
A C interface to cpdf is available, in source and binary form:
https://github.com/johnwhitington/cpdflib-source
https://github.com/coherentgraphics/cpdflib-binary
A Python interface to cpdf is available:
https://pypi.org/project/pycpdflib
A Java interface to cpdf is available:
https://github.com/coherentgraphics/jcpdf
A .NET interface to cpdf is available:
https://github.com/coherentgraphics/dotnet-libcpdf
A JavaScript version of cpdf, for server and client side is available:
Distribution: https://www.npmjs.com/package/coherentpdf
Source: https://github.com/coherentgraphics/coherentpdf.js
The file cpdfxmlm.ml was written by Daniel Bünzli.
The file cpdfyojson.ml was written by Martin Jambon and others.
The error descriptions for -verify "PDF/UA-1(matterhorn)" come from the PDF Association, and are licensed under the Creative Commons Attribution 4.0 International license.
PDF/UA support in Cpdf was implemented under NLnet grant 2023-12-031.