Module Pdfspace


module Pdfspace: sig .. end
Colour Spaces - Some types of colourspace missing.

type point = float * float * float 
A Tristimulus Point

type iccbased = {
   icc_n : int;
   icc_alternate : colourspace;
   icc_range : float array;
   icc_metadata : Pdf.pdfobject option;
   icc_stream : Pdf.pdfobject;
}
ICC Based Colour Spaces

type colourspace =
| DeviceGray
| DeviceRGB
| DeviceCMYK
| CalGray of point * point * float
| CalRGB of point * point * float array * float array
| Lab of point * point * float array
| ICCBased of iccbased
| Indexed of colourspace * (int, int list) Hashtbl.t
| Pattern
| Separation of string * colourspace * Pdffun.pdf_fun
| DeviceN of string array * colourspace * Pdffun.pdf_fun * Pdf.pdfobject
Colour spaces
val string_of_colourspace : colourspace -> string
Produce a debug string
val name_of_colourspace : colourspace -> string option
Read the name of a colour, if it has one
val read_colourspace : Pdf.pdfdoc -> Pdf.pdfobject -> Pdf.pdfobject -> colourspace
Read a colourspace from a PDF given a document, page resources dictionary and the colourspace object