The CPDF PDF command line tool for editing PDF files. cpdf as an OCaml library
Go to file
John Whitington 86a46b4243 Stack safety 2020-03-04 10:50:32 -08:00
html_manual more 2019-07-30 17:42:30 +01:00
.gitignore more 2017-01-12 19:53:46 +00:00
Changes OCG 2020-03-02 13:39:37 +01:00
LICENSE Added xmlm statement to license 2014-11-25 10:56:52 +00:00
META Fixed META, build advice 2013-09-03 17:13:59 +01:00
Makefile Scaffolding for -output-json 2020-01-30 10:20:33 +00:00
OCamlMakefile Removed dependency on Unix 2013-11-11 16:39:45 +00:00
README.md Update README.md 2018-10-16 10:35:29 +01:00
blank.pdf more 2016-11-01 18:12:16 +00:00
blank20.pdf More work on new bookmarks format 2017-11-04 16:24:14 +00:00
blankowneruser.pdf more manual fixes w.r.t recrypt 2014-11-18 14:57:18 +00:00
cpdf.1 Updates to manual 2013-10-25 16:33:31 +01:00
cpdf.ml Stack safety 2020-03-04 10:50:32 -08:00
cpdf.mli Added -ocg-order-all 2020-03-02 13:37:39 +01:00
cpdfcommand.ml Stack safety 2020-03-04 10:50:32 -08:00
cpdfcommand.mli Beginning html manual 2017-01-10 19:52:57 +00:00
cpdfcommandrun.ml Beginning to work on nobble problem 2014-10-22 11:07:17 +01:00
cpdfcoord.ml more 2019-09-26 13:30:22 +01:00
cpdfcoord.mli Split cpdfcoord.ml off from cpdfcommand.ml 2019-09-26 11:44:54 +01:00
cpdfmanual.pdf Implementation and documentation for -labels-progress 2020-01-25 16:58:41 +08:00
cpdfmanual.tex Fixed -labels-progress 2020-02-07 13:48:09 +00:00
cpdfstrftime.ml First finished implementation of XMP dates 2019-06-29 14:04:27 +01:00
cpdfstrftime.mli First finished implementation of XMP dates 2019-06-29 14:04:27 +01:00
cpdfwriteJSON.ml Stack safety 2020-03-04 10:50:32 -08:00
cpdfwriteJSON.mli Added -output-json-no-stream-data 2020-02-01 10:18:15 +00:00
hello.pdf Decompress now non-lazy. Otherwise, deferred decryption fails due to 2017-01-04 17:52:14 +00:00
logo.pdf Fixed building of cpdfmanual.tex by adding logo.pdf 2013-08-29 12:12:36 +01:00
mktext Text width fixed 2016-11-04 15:57:28 +00:00
mktext.ml more 2016-11-01 18:12:16 +00:00
tjjson.ml Vendored in JSON library, other updates to begin v2.4 2020-01-24 16:20:40 +08:00
tjjson.mli Vendored in JSON library, other updates to begin v2.4 2020-01-24 16:20:40 +08:00
tjllist.ml Vendored in JSON library, other updates to begin v2.4 2020-01-24 16:20:40 +08:00
tjllist.mli Vendored in JSON library, other updates to begin v2.4 2020-01-24 16:20:40 +08:00
tjparserMonad.ml Vendored in JSON library, other updates to begin v2.4 2020-01-24 16:20:40 +08:00
tjparserMonad.mli Vendored in JSON library, other updates to begin v2.4 2020-01-24 16:20:40 +08:00
tjutf16.ml Vendored in JSON library, other updates to begin v2.4 2020-01-24 16:20:40 +08:00
tjutf16.mli Vendored in JSON library, other updates to begin v2.4 2020-01-24 16:20:40 +08:00
tjutil.ml Vendored in JSON library, other updates to begin v2.4 2020-01-24 16:20:40 +08:00
tjutil.mli Vendored in JSON library, other updates to begin v2.4 2020-01-24 16:20:40 +08:00
xmlm.ml -safe-string 2018-07-30 13:58:25 +01:00
xmlm.mli Vendored in JSON library, other updates to begin v2.4 2020-01-24 16:20:40 +08:00

README.md

cpdf-source

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

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:

http://opam.ocamlpro.com

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.1.1". The head of the master branch is unstable.

  1. Type make to make the cpdf executable and the library

  2. 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.

Contact

contact@coherentgraphics.co.uk