Skip to content
PDF Command Line Tools Source
OCaml TeX Other
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
html_manual more Jul 30, 2019
.gitignore more Jan 12, 2017
Changes Added scaffolding for -stamp-as-xobject Mar 18, 2020
LICENSE Added xmlm statement to license Nov 25, 2014
META Fixed META, build advice Sep 3, 2013
Makefile Begin vendoring of unix for gettimeofday May 18, 2020
OCamlMakefile Removed dependency on Unix Nov 11, 2013
README.md Update README.md Oct 16, 2018
blank.pdf more Nov 1, 2016
blank20.pdf More work on new bookmarks format Nov 4, 2017
blankowneruser.pdf more manual fixes w.r.t recrypt Nov 18, 2014
cpdf.1 Updates to manual Oct 25, 2013
cpdf.ml Added -squeeze-no-pagedata, -squeeze-no-recompress May 6, 2020
cpdf.mli Added -squeeze-no-pagedata, -squeeze-no-recompress May 6, 2020
cpdfcommand.ml Added -squeeze-no-pagedata, -squeeze-no-recompress May 6, 2020
cpdfcommand.mli Beginning html manual Jan 10, 2017
cpdfcommandrun.ml Beginning to work on nobble problem Oct 22, 2014
cpdfcoord.ml more Sep 26, 2019
cpdfcoord.mli Split cpdfcoord.ml off from cpdfcommand.ml Sep 26, 2019
cpdfmanual.pdf Implementation and documentation for -labels-progress Jan 25, 2020
cpdfmanual.tex Added -squeeze-no-pagedata, -squeeze-no-recompress May 6, 2020
cpdfstrftime.ml First finished implementation of XMP dates Jun 29, 2019
cpdfstrftime.mli First finished implementation of XMP dates Jun 29, 2019
cpdfwriteJSON.ml Finished -stamp-as-xobject Mar 25, 2020
cpdfwriteJSON.mli Added -output-json-no-stream-data Feb 1, 2020
gettimeofday.c Begin vendoring of unix for gettimeofday May 18, 2020
hello.pdf Decompress now non-lazy. Otherwise, deferred decryption fails due to Jan 4, 2017
logo.pdf Fixed building of cpdfmanual.tex by adding logo.pdf Aug 29, 2013
mktext Text width fixed Nov 4, 2016
mktext.ml more Nov 1, 2016
tjjson.ml Vendored in JSON library, other updates to begin v2.4 Jan 24, 2020
tjjson.mli Vendored in JSON library, other updates to begin v2.4 Jan 24, 2020
tjllist.ml Vendored in JSON library, other updates to begin v2.4 Jan 24, 2020
tjllist.mli Vendored in JSON library, other updates to begin v2.4 Jan 24, 2020
tjparserMonad.ml Vendored in JSON library, other updates to begin v2.4 Jan 24, 2020
tjparserMonad.mli Vendored in JSON library, other updates to begin v2.4 Jan 24, 2020
tjutf16.ml Vendored in JSON library, other updates to begin v2.4 Jan 24, 2020
tjutf16.mli Vendored in JSON library, other updates to begin v2.4 Jan 24, 2020
tjutil.ml Vendored in JSON library, other updates to begin v2.4 Jan 24, 2020
tjutil.mli Vendored in JSON library, other updates to begin v2.4 Jan 24, 2020
xmlm.ml -safe-string Jul 30, 2018
xmlm.mli Vendored in JSON library, other updates to begin v2.4 Jan 24, 2020

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

You can’t perform that action at this time.