Tag Archives: Ocaml

PDF Command Line Tools 1.1

I’ve just uploaded the new version of our tools for merging, splitting, annotating, encrypting and stamping PDF files here. New features: -blacklines and -blackfills (Blacken lines and fills) -idir (Add whole directory of files) -scale-to-fit (Scale pages to fit a given … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

Storing Colours in 31 bits (Part 2)

Jean-Baptiste Rouquier rose to the challenge in my last post: to provide a fast way of storing premultiplied colours in OCaml’s 31bit integers (see his post here). With his kind permission, I’ve included this code (somewhat optimized) in the Colour … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

A Simple Parser with Genlex

(If you’re reading this via the OCaml planet, click the post title to see it with proper formatting – I shall fix this problem for the next post, I hope.) When calling our command line PDF Tools to, for instance, … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Storing Colours in 31 bits (Part One)

For rendering vector graphics scenes, colours are usually stored with what we call “premultiplied” or “associated” alpha. For instance, opaque dark red is stored as: 0.5, 0, 0, 0.5 (R * A, G * A, B * A, A) instead … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

A Proper GUI for OCaml (Part Two)

I’ve packaged up the basic libraries described last time and you can get them here, together with a little example. It should work on any platform / toolchain where OCaml and Python and WxPython can be installed. It allows you … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

A Proper GUI for OCaml (Part One)

Some time ago, I wrote a GUI for a large OCaml project in C++ using WxWidgets, linked to OCaml in a single executable. It was hard and slow to write and crashed all over the place. So I’ve redone it … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

CamlPDF 0.3 Released

I’ve just uploaded a new version of our library for reading and writing PDF files from within Ocaml – CamlPDF. New features: CCITTFaxDecode support Fully re-entrant Parsing of Type 3 fonts Bit-by-bit operations (e.g some decoders) much faster and of … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment