• Stars
    star
    222
  • Rank 179,123 (Top 4 %)
  • Language
    OCaml
  • License
    GNU Affero Genera...
  • Created about 11 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

PDF Command Line Tools Source

cpdf-source

Free for non-commercial use. See LICENSE for details. Copyright Coherent Graphics Ltd 2023.

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, for which documentation is here:

https://coherentpdf.com/cpdf/

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

Python API

A Python interface to cpdf is available:

https://pypi.org/project/pycpdflib/

Acknowledgments

The file cpdfxmlm.ml was written by Daniel Bünzli.

The file cpdfyojson.ml was written by Martin Jambon and others.

Contact

[email protected]

More Repositories

1

camlpdf

OCaml library for reading, writing and modifying PDF files
OCaml
200
star
2

ocamli

OCaml interpreter
OCaml
99
star
3

ppx_blob

OCaml ppx to include binary data from a file as a string
OCaml
77
star
4

more-ocaml-exercises

Examples and Exercises for the book "More OCaml"
OCaml
60
star
5

mlbook

OCaml from the Very Beginning
HTML
50
star
6

ocaml-from-very-beginning-exercises

Examples and exercises for the OCaml Book "OCaml from the Very Beginning"
OCaml
34
star
7

python-from-the-very-beginning-examples-and-exercises

Examples and exercises for the book "Python from the Very Beginning"
Python
28
star
8

cpdfsqueeze

Lossless PDF squeezer
OCaml
22
star
9

ocaml-main-program-in-c

Example build system for making mixed C/Ocaml binaries where the main program is in C
Shell
16
star
10

cpdflib-source

C
9
star
11

haskell-from-the-very-beginning-exercises

Exercises for the book "Haskell from the Very Beginning"
Haskell
8
star
12

graphicspdf

Version of OCaml's Graphics module which outputs PDF.
OCaml
7
star
13

exn-source

Exception backtrace for OCaml with source code printing
Prolog
5
star
14

ocaml-nursery

Examples for OCaml libraries, prior to upstreaming
OCaml
4
star
15

what-ocaml-compiles

What OCaml compiles when it compiles
3
star
16

coherence-renderer

coherence-renderer
OCaml
3
star
17

roman

Roman numerals for OCaml
OCaml
3
star
18

cpdflin

qpdf-based linearizer for use with cpdf
Shell
3
star
19

more-ocaml

Support code for the book "More OCaml"
OCaml
2
star
20

camlgpc

OCaml interface to Alan Murta's General Polygon Clipper
C
2
star
21

tppx_showtype

Example typed PPX
OCaml
2
star
22

rfork

Automatic decorators for OCaml types
OCaml
1
star
23

tppx_test

Testing the documentation for tppx in Tast_mapper
OCaml
1
star
24

5443

Mantis Bug 5443 Experiments
OCaml
1
star