camlpdf
Read, write and modify PDF files
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library camlpdf
type t =
| JPEG of Pdfio.bytes * float list option |
| JPEG2000 of Pdfio.bytes * float list option |
| JBIG2 of Pdfio.bytes * float list option |
| Raw of int * int * pixel_layout * Pdfio.bytes |
val string_of_layout : pixel_layout -> string
val string_of_image : t -> string
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 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 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.