package camlpdf

  1. Overview
  2. Docs
type point = float * float * float
type iccbased = {
  1. icc_n : int;
  2. icc_alternate : t;
  3. icc_range : float array;
  4. icc_metadata : Pdf.pdfobject option;
  5. icc_stream : Pdf.pdfobject;
}
and t =
  1. | DeviceGray
  2. | DeviceRGB
  3. | DeviceCMYK
  4. | CalGray of point * point * float
  5. | CalRGB of point * point * float array * float array
  6. | Lab of point * point * float array
  7. | ICCBased of iccbased
  8. | Indexed of t * (int, int list) Hashtbl.t
  9. | Pattern
  10. | PatternWithBaseColourspace of t
  11. | Separation of string * t * Pdffun.t
  12. | 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
OCaml

Innovation. Community. Security.