module Pdfspace:sig
..end
Colour Spaces
typepoint =
float * float * float
A Tristimulus Point
type
iccbased = {
|
icc_n : |
|
icc_alternate : |
|
icc_range : |
|
icc_metadata : |
|
icc_stream : |
}
ICC Based Colour Spaces
type
t =
| |
DeviceGray |
| |
DeviceRGB |
| |
DeviceCMYK |
| |
CalGray of |
| |
CalRGB of |
| |
Lab of |
| |
ICCBased of |
| |
Indexed of |
| |
Pattern |
| |
PatternWithBaseColourspace of |
| |
Separation of |
| |
DeviceN of |
Colour spaces
val string_of_colourspace : t -> string
Produce a debug string
val name_of_colourspace : t -> string option
Read the name of a colour, if it has one.
val read_colourspace : Pdf.t -> Pdf.pdfobject -> Pdf.pdfobject -> t
Read a colourspace from a PDF given a document, page resources dictionary and the colourspace object
val write_colourspace : Pdf.t -> t -> Pdf.pdfobject
Write a colourspace to a PDF, returning it.