camlpdf

Read, write and modify PDF files
Library camlpdf
Module Pdfspace
type point = float * float * float
type iccbased = {
icc_n : int;
icc_alternate : t;
icc_range : float array;
icc_metadata : Pdf.pdfobject option;
icc_stream : Pdf.pdfobject;
}
and t =
| 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 t * ( int, int list ) Hashtbl.t
| Pattern
| PatternWithBaseColourspace of t
| Separation of string * t * Pdffun.t
| DeviceN of string array * t * Pdffun.t * Pdf.pdfobject
val string_of_colourspace : t -> string
val name_of_colourspace : t -> string option
val read_point : Pdf.t -> Pdf.pdfobject -> string -> float * float * float
val get_basic_table_colourspace : t -> t
val read_colourspace_inner : Pdf.t -> Pdf.pdfobject -> Pdf.pdfobject -> t
val read_colourspace : Pdf.t -> Pdf.pdfobject -> Pdf.pdfobject -> t
val write_colourspace : Pdf.t -> t -> Pdf.pdfobject