The CPDF PDF command line tool for editing PDF files. cpdf as an OCaml library
Go to file
2021-10-01 15:21:03 +01:00
html_manual more 2021-09-27 19:21:15 +01:00
pysplits more 2021-09-26 16:24:19 +01:00
splits splits 2021-06-18 14:19:43 +01:00
.gitignore
blank20.pdf
blank.pdf
blankowneruser.pdf
Changes Vendor in streams for tjjson 2021-09-30 19:55:52 +01:00
cpdf.1 cleaning 2021-06-21 15:44:47 +01:00
cpdf.ml Prevent new missing mediabox warning triggering in -image-resolution 2021-09-30 15:02:15 +01:00
cpdf.mli cpdfposition 2021-08-12 20:38:55 +01:00
cpdfcommand.ml -j support 2021-10-01 12:16:55 +01:00
cpdfcommand.mli
cpdfcommandrun.ml
cpdfcoord.ml
cpdfcoord.mli cleaning 2021-06-21 15:44:47 +01:00
cpdfJSON.ml First successful JSON round trip 2021-10-01 15:21:03 +01:00
cpdfJSON.mli -j support 2021-10-01 12:16:55 +01:00
cpdfmanual.pdf more 2021-09-27 19:48:29 +01:00
cpdfmanual.tex more 2021-09-26 16:24:19 +01:00
cpdfpagespec.ml Splitting page spec into separate module 2021-08-12 20:14:48 +01:00
cpdfpagespec.mli Splitting page spec into separate module 2021-08-12 20:14:48 +01:00
cpdfposition.ml cpdfposition 2021-08-12 20:38:55 +01:00
cpdfposition.mli cpdfposition 2021-08-12 20:38:55 +01:00
cpdfstream.ml Vendor in streams for tjjson 2021-09-30 19:55:52 +01:00
cpdfstream.mli Vendor in streams for tjjson 2021-09-30 19:55:52 +01: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
hello.pdf
LICENSE reference to cpdflib 2021-06-28 18:22:43 +01:00
logo.pdf
Makefile -j support 2021-10-01 12:16:55 +01:00
META more 2021-05-21 17:02:08 +01:00
mkinstall install script 2021-06-20 16:27:46 +01:00
mktext
mktext.ml
OCamlMakefile
README.md more 2021-06-28 18:24:31 +01:00
splitwrapper splits 2021-06-18 14:19:43 +01:00
tjjson.ml
tjjson.mli
tjllist.ml Vendor in streams for tjjson 2021-09-30 19:55:52 +01:00
tjllist.mli Vendor in streams for tjjson 2021-09-30 19:55:52 +01:00
tjparserMonad.ml Vendor in streams for tjjson 2021-09-30 19:55:52 +01:00
tjparserMonad.mli
tjutf16.ml
tjutf16.mli
tjutil.ml cleaning 2021-06-21 15:44:47 +01:00
tjutil.mli
xmlm.ml
xmlm.mli

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