package camlpdf

  1. Overview
  2. Docs
Read, write and modify PDF files

Install

Dune Dependency

Authors

Maintainers

Sources

v2.7.zip
md5=c0c54de8b55d52c8dbd1f3bd3a8302a2
sha512=2d971df83157cebcc5575c600bddc300f1adda1864168f9d0f6e64617efe4aed3fdfb8bd983b0ea208ebf718f9739831867bf9201f0eb5d0eed7f812f38d522a

doc/camlpdf/Pdfspace/index.html

Module Pdfspace

Colour Spaces

type point = float * float * float

A Tristimulus Point

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;
}

ICC Based Colour Spaces

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) Stdlib.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

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.

OCaml

Innovation. Community. Security.