65aec369c2 | ||
---|---|---|
html_manual | ||
pysplits | ||
splits | ||
.gitignore | ||
Changes | ||
LICENSE | ||
META | ||
Makefile | ||
OCamlMakefile | ||
README.md | ||
blank.pdf | ||
blank20.pdf | ||
blankowneruser.pdf | ||
cpdf.1 | ||
cpdf.ml | ||
cpdf.mli | ||
cpdfattach.ml | ||
cpdfattach.mli | ||
cpdfcommand.ml | ||
cpdfcommand.mli | ||
cpdfcommandrun.ml | ||
cpdfcoord.ml | ||
cpdfcoord.mli | ||
cpdferror.ml | ||
cpdferror.mli | ||
cpdfjson.ml | ||
cpdfjson.mli | ||
cpdfmanual.pdf | ||
cpdfmanual.tex | ||
cpdfpagespec.ml | ||
cpdfpagespec.mli | ||
cpdfposition.ml | ||
cpdfposition.mli | ||
cpdfstrftime.ml | ||
cpdfstrftime.mli | ||
cpdfxmlm.ml | ||
cpdfxmlm.mli | ||
cpdfyojson.ml | ||
cpdfyojson.mli | ||
hello.pdf | ||
logo.pdf | ||
mkinstall | ||
mktext | ||
mktext.ml | ||
splitwrapper |
README.md
cpdf-source
Free for non-commercial use. See LICENSE for details. Copyright Coherent Graphics Ltd 2021.
This code builds two things:
a) The CPDF PDF Command Line Tools, which are a popular commercial command line tool for editing PDF files.
b) cpdf as an OCaml library.
Prerequisites to build
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
To build
If downloading from Github, obtain the correct source. This means choosing the tag for a particular version, such as "v2.4". 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
Documentation
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.
C API
A C interface to cpdf is available, in source and binary form:
https://github.com/johnwhitington/cpdflib-source
https://github.com/coherentgraphics/cpdflib-binary