package camlpdf

  1. Overview
  2. Docs
type pixel_layout =
  1. | BPP1
  2. | BPP8
  3. | BPP24
  4. | BPP48
type t =
  1. | JPEG of Pdfio.bytes * float list option
  2. | JPEG2000 of Pdfio.bytes * float list option
  3. | JBIG2 of Pdfio.bytes * float list option
  4. | Raw of int * int * pixel_layout * Pdfio.bytes
val string_of_layout : pixel_layout -> string
val string_of_image : t -> string
val print_floats : float array -> unit
val invert_bits : Pdfio.bytes -> unit
val decode : float array -> int -> Pdfio.bytes -> unit
val decode_defaults : Pdf.t -> Pdf.pdfobject -> Pdf.pdfobject option -> Pdf.pdfobject -> Pdf.pdfobject option
val decode_to_image : Pdf.t -> Pdf.pdfobject -> unit
val rgb_of_cmyk : int -> int -> int -> int -> int * int * int
val read_cmyk_8bpp_as_rgb24 : int -> int -> Pdfio.bytes -> Pdfio.bytes
val read_gray_8bpp_as_rgb24 : int -> int -> Pdfio.bytes -> Pdfio.bytes
val read_1bpp_as_rgb24 : int -> int -> Pdfio.bytes -> Pdfio.bytes
val read_4bpp_gray_as_rgb24 : int -> int -> Pdfio.bytes -> Pdfio.bytes
val read_8bpp_indexed_as_rgb24 : (int, int list) Hashtbl.t -> int -> int -> Pdfio.bytes -> Pdfio.bytes
val clamp10 : float -> float
val xyz_of_lab : float -> float -> float -> float -> float -> float -> float * float * float
val rgb_of_xyz : float -> float -> float -> float * float * float
val convert_lab_to_rgb : int -> int -> (float * float * float) -> 'a -> 'b -> Pdfio.bytes -> unit
val read_8bpp_lab_indexed_as_rgb24 : (int, int list) Hashtbl.t -> int -> int -> (float * float * float) -> 'a -> 'b -> Pdfio.bytes -> Pdfio.bytes
val read_8bpp_cmyk_indexed_as_rgb24 : (int, int list) Hashtbl.t -> int -> int -> Pdfio.bytes -> Pdfio.bytes
val read_4bpp_indexed_as_rgb24 : (int, int list) Hashtbl.t -> int -> int -> Pdfio.bytes -> Pdfio.bytes
val read_4bpp_cmyk_indexed_as_rgb24 : (int, int list) Hashtbl.t -> int -> int -> Pdfio.bytes -> Pdfio.bytes
val read_separation_cmyk_as_rgb24 : Pdffun.t -> int -> int -> Pdfio.bytes -> Pdfio.bytes
val read_raw_image : int -> Pdfspace.t -> Pdf.pdfobject option -> 'a -> 'b -> int -> int -> 'c -> Pdfio.bytes -> t
val get_raw_image : Pdf.t -> Pdf.pdfobject -> int -> int -> Pdf.pdfobject -> Pdfio.bytes -> t
val print_image : Pdf.t -> Pdf.pdfobject -> Pdf.pdfobject -> unit
val get_image_24bpp : Pdf.t -> Pdf.pdfobject -> Pdf.pdfobject -> t
val get_image : Pdf.t -> Pdf.pdfobject -> Pdf.pdfobject -> t
val get_image_raw_24bpp : Pdf.t -> Pdf.pdfobject -> Pdf.pdfobject -> t
val get_image_raw : Pdf.t -> Pdf.pdfobject -> Pdf.pdfobject -> t
val get_image_unprocessed_pixel : Pdf.t -> Pdf.pdfobject -> Pdf.pdfobject -> (int -> int array) option

Return a function which, when given an x and y coordinate, returns the pixel byte values prior to any decoding, i.e in the raw input image data before /Decode, /Index lookups and so on. Returns array of components as bytes. This function is needed because color key masking is defined in terms of the pixel values of undecoded images.

OCaml

Innovation. Community. Security.