The CPDF PDF command line tool for editing PDF files. cpdf as an OCaml library
Go to file
John Whitington 43ffc25b9c Things like PW plus CW minus 10mm now work 2016-07-20 17:39:04 +01:00
.gitignore more 2014-10-02 13:50:17 +01:00
Changes -midline and -topline for stamps 2015-02-17 15:48:00 +00: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 Work on content stream sharing 2016-03-29 14:40:01 +01:00
OCamlMakefile Removed dependency on Unix 2013-11-11 16:39:45 +00:00
README.md Added instruction to pick a tag when downloading from Github 2015-05-12 15:13:07 +01:00
TODO Added TODO file 2013-10-03 16:22:09 +01:00
blank.pdf Updated version number 2014-12-21 13:22:08 +00:00
blank20.pdf Finished page label work. 2014-09-19 13:58:20 +01: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 Better error reporting for bookmark files 2016-04-08 20:13:22 +01:00
cpdf.mli -stamp-on, -stamp-under now work via -relative-to-cropbox command line switch 2016-01-08 12:28:07 +00:00
cpdfcommand.ml Things like PW plus CW minus 10mm now work 2016-07-20 17:39:04 +01:00
cpdfcommand.mli More work with -stay-in-error 2015-01-12 17:55:45 +00:00
cpdfcommandrun.ml Beginning to work on nobble problem 2014-10-22 11:07:17 +01:00
cpdfmanual.pdf Add -bates-at-range 2015-07-26 12:31:43 +01:00
cpdfmanual.tex Grammar error 2016-04-07 13:14:38 +01:00
cpdfstrftime.ml Unix back in 2013-11-22 14:42:18 +00:00
cpdfstrftime.mli Started to improve ocamldoc documentation 2013-08-27 17:35:16 +01:00
logo.pdf Fixed building of cpdfmanual.tex by adding logo.pdf 2013-08-29 12:12:36 +01:00
xmlm.ml Began -no-embed-fonts work 2015-04-13 14:17:48 +01:00
xmlm.mli Began -no-embed-fonts work 2015-04-13 14:17:48 +01: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 particaular 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