camlpdf

Read, write and modify PDF files
Library camlpdf
Module Pdfflate
exception Error of string * string
type stream
type flush_command =
| Z_NO_FLUSH
| Z_SYNC_FLUSH
| Z_FULL_FLUSH
| Z_FINISH
val deflate_init : int -> bool -> stream
val deflate : stream -> bytes -> int -> int -> bytes -> int -> int -> flush_command -> bool * int * int
val deflate_end : stream -> unit
val inflate_init : bool -> stream
val inflate : stream -> bytes -> int -> int -> bytes -> int -> int -> flush_command -> bool * int * int
val inflate_end : stream -> unit
val buffer_size : int
val compress : ?level:int -> ?header:bool -> ( bytes -> int ) -> ( bytes -> int -> 'a ) -> unit
val uncompress : ?header:bool -> ( bytes -> int ) -> ( bytes -> int -> 'a ) -> unit