cpdf-source/README.md

70 lines
1.6 KiB
Markdown
Raw Normal View History

2013-08-15 21:29:55 +02:00
cpdf-source
===========
2013-08-29 12:54:56 +02:00
Free for non-commercial use. See LICENSE for details. Copyright Coherent
Graphics Ltd 2013.
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
[http://ocaml.org](http://ocaml.org)
The camlpdf library
[http://github.com/johnwhitington/camlpdf](http://www.github.com/johnwhitington/camlpdf)
The ocamlfind library manager
[http://projects.camlcity.org/projects/findlib.html](http://projects.camlcity.org/projects/findlib.html)
If you are using the OPAM package manager:
[http://opam.ocamlpro.com](http://opam.ocamlpro.com)
these can be installed by:
```
opam install camlpdf
```
2013-08-29 12:54:56 +02:00
To build
--------
If downloading from Github, obtain the correct source. This means choosing the tag for a
2018-10-16 11:35:29 +02:00
particular version, such as "v2.1.1". The head of the master branch is
unstable.
1. Type `make` to make the cpdf executable and the library
2013-08-29 12:54:56 +02:00
2. Type `make install` to install the OCaml cpdf library.
2013-08-29 12:54:56 +02:00
The `cpdf` executable should be manually placed somewhere suitable.
2013-08-29 12:54:56 +02:00
Alternatively, the library and command-line binary can be installed by
2013-08-29 12:54:56 +02:00
```
2013-08-29 12:54:56 +02:00
opam install cpdf
```
2013-08-29 12:54:56 +02:00
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/`
2013-08-29 12:54:56 +02:00
in this folder once the library has been built.
Contact
-------
2013-12-27 17:44:42 +01:00
[contact@coherentgraphics.co.uk](mailto:contact@coherentgraphics.co.uk)