The CPDF PDF command line tool for editing PDF files. cpdf as an OCaml library
Go to file
John Whitington 918e35c129 more 2022-01-09 15:43:33 +00:00
compressor more 2021-12-21 15:42:01 +00:00
debug more 2021-10-25 16:26:30 +01:00
html_manual more 2021-09-27 19:21:15 +01:00
pysplits more 2021-09-26 16:24:19 +01:00
splits
test more 2021-11-02 13:56:45 +00:00
.gitignore
Changes Ready for v2.5 release 2022-01-09 14:57:06 +00:00
LICENSE reference to cpdflib 2021-06-28 18:22:43 +01:00
META more 2021-11-12 14:00:57 -08:00
Makefile Finished splitting of cpdf.ml 2021-12-22 09:31:39 +00:00
OCamlMakefile
README.md more 2021-06-28 18:24:31 +01:00
blank.pdf
blank20.pdf
blankowneruser.pdf
cpdf.1 cleaning 2021-06-21 15:44:47 +01:00
cpdfaddtext.ml tidying 2021-12-31 19:33:34 +00:00
cpdfaddtext.mli more 2021-12-21 15:40:52 +00:00
cpdfannot.ml more 2021-12-31 19:28:42 +00:00
cpdfannot.mli more 2021-12-21 13:44:46 +00:00
cpdfattach.ml Correct UTF8 outputs 2022-01-04 17:17:37 +00:00
cpdfattach.mli more 2021-12-19 13:38:27 +00:00
cpdfbookmarks.ml more 2021-12-31 19:28:42 +00:00
cpdfbookmarks.mli more 2021-12-21 15:33:56 +00:00
cpdfcommand.ml Ready for v2.5 release 2022-01-09 14:57:06 +00:00
cpdfcommand.mli demo gone 2021-10-15 17:18:23 +01:00
cpdfcommandrun.ml
cpdfcoord.ml more 2022-01-04 12:52:44 +00:00
cpdfcoord.mli cleaning 2021-06-21 15:44:47 +01:00
cpdfcreate.ml more 2021-12-21 11:12:52 +00:00
cpdfcreate.mli more 2021-12-20 09:02:39 +00:00
cpdfdebug.ml more 2021-12-21 11:12:52 +00:00
cpdfdebug.mli more 2021-12-21 11:12:52 +00:00
cpdfdraft.ml tidying 2021-12-31 19:33:34 +00:00
cpdfdraft.mli more 2021-12-21 15:25:59 +00:00
cpdferror.ml Split off a little code 2021-10-02 12:22:59 +01:00
cpdferror.mli Split off a little code 2021-10-02 12:22:59 +01:00
cpdffont.ml more 2021-12-21 13:44:46 +00:00
cpdffont.mli more 2021-12-21 13:44:46 +00:00
cpdfimage.ml more 2022-01-04 12:05:11 +00:00
cpdfimage.mli more 2021-12-21 15:25:59 +00:00
cpdfimpose.ml more 2022-01-08 16:20:26 +00:00
cpdfimpose.mli more 2021-12-22 08:58:56 +00:00
cpdfjson.ml Fixing up JSON text output 2021-12-30 15:25:24 +00:00
cpdfjson.mli Fixing up JSON text output 2021-12-30 15:25:24 +00:00
cpdfmanual.pdf more 2022-01-09 15:43:33 +00:00
cpdfmanual.tex more 2022-01-09 15:43:33 +00:00
cpdfmetadata.ml tidying 2021-12-31 19:33:34 +00:00
cpdfmetadata.mli more 2021-12-19 12:55:06 +00:00
cpdfocg.ml Correct UTF8 outputs 2022-01-04 17:17:37 +00:00
cpdfocg.mli more 2021-12-18 16:14:31 +00:00
cpdfpad.ml tidying 2021-12-31 19:33:34 +00:00
cpdfpad.mli more 2021-12-18 15:47:06 +00:00
cpdfpage.ml more 2022-01-03 15:13:03 +00:00
cpdfpage.mli more 2022-01-02 15:18:55 +00:00
cpdfpagelabels.ml more 2022-01-08 16:21:28 +00:00
cpdfpagelabels.mli more 2021-12-20 09:02:39 +00:00
cpdfpagespec.ml DUP page ranges 2021-11-12 11:03:17 -08:00
cpdfpagespec.mli DUP page ranges 2021-11-12 11:03:17 -08:00
cpdfposition.ml cpdfposition 2021-08-12 20:38:55 +01:00
cpdfposition.mli cpdfposition 2021-08-12 20:38:55 +01:00
cpdfpresent.ml more 2021-12-17 16:12:03 +00:00
cpdfpresent.mli more 2021-12-17 16:12:03 +00:00
cpdfspot.ml more 2021-12-19 13:26:15 +00:00
cpdfspot.mli more 2021-12-19 13:26:15 +00:00
cpdfsqueeze.ml more 2021-12-18 16:26:33 +00:00
cpdfsqueeze.mli more 2021-12-18 16:26:33 +00:00
cpdfstrftime.ml stderr unbuffered 2021-07-23 16:26:07 +01:00
cpdfstrftime.mli stderr unbuffered 2021-07-23 16:26:07 +01:00
cpdftexttopdf.ml more 2021-12-29 15:58:03 +00:00
cpdftexttopdf.mli more 2021-12-29 15:58:03 +00:00
cpdftoc.ml more 2022-01-09 13:46:41 +00:00
cpdftoc.mli toc-bookmark 2021-12-10 12:58:30 +00:00
cpdftweak.ml tidying 2021-12-31 19:33:34 +00:00
cpdftweak.mli Finished splitting of cpdf.ml 2021-12-22 09:31:39 +00:00
cpdftype.ml more 2021-12-14 14:19:58 +00:00
cpdftype.mli more 2021-12-14 14:07:52 +00:00
cpdfunicodedata.ml Import and parse UnicodeData.txt 2021-11-11 11:45:47 -08:00
cpdfunicodedata.mli Import and parse UnicodeData.txt 2021-11-11 11:45:47 -08:00
cpdfunicodedata.source.ml Import and parse UnicodeData.txt 2021-11-11 11:45:47 -08:00
cpdfutil.ml more 2021-12-22 08:58:56 +00:00
cpdfutil.mli more 2021-12-22 08:58:56 +00:00
cpdfxmlm.ml Yojson in 2021-10-05 17:16:13 +01:00
cpdfxmlm.mli Yojson in 2021-10-05 17:16:13 +01:00
cpdfxobject.ml more 2021-12-21 15:33:56 +00:00
cpdfxobject.mli more 2021-12-21 15:33:56 +00:00
cpdfyojson.ml Yojson in 2021-10-05 17:16:13 +01:00
cpdfyojson.mli Yojson in 2021-10-05 17:16:13 +01:00
hello.pdf
logo.pdf
mkinstall install script 2021-06-20 16:27:46 +01:00
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

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.4". 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.

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

Contact

contact@coherentgraphics.co.uk