`sig
type encoding =
ASCIIHex
| ASCII85
| RunLength
| Flate
| CCITT of int * int
| CCITTG4 of int * int
type predictor =
TIFF2
| PNGNone
| PNGSub
| PNGUp
| PNGAverage
| PNGPaeth
| PNGOptimum
exception Couldn'tDecodeStream of string
exception DecodeNotSupported of string
val encode_pdfstream :
Pdf.t ->
Pdfcodec.encoding ->
?im:string ->
?only_if_smaller:bool ->
?predictor:Pdfcodec.predictor ->
?predictor_columns:int -> Pdf.pdfobject -> unit
val decode_pdfstream : ?jbig2dec:string -> Pdf.t -> Pdf.pdfobject -> unit
val decode_pdfstream_onestage :
?jbig2dec:string -> Pdf.t -> Pdf.pdfobject -> unit
val decode_pdfstream_until_unknown :
?jbig2dec:string -> Pdf.t -> Pdf.pdfobject -> unit
val decode_from_input : Pdfio.input -> Pdf.pdfobject -> Pdfio.bytes option
val flate_level : int Stdlib.ref
val encode_flate : Pdfio.bytes -> Pdfio.bytes
val decode_flate : Pdfio.bytes -> Pdfio.bytes
val encode_ccitt : int -> int -> Pdfio.bytes -> Pdfio.bytes
val encode_ccittg4 : ?im:string -> int -> int -> Pdfio.bytes -> Pdfio.bytes
val debug : bool Stdlib.ref
val string_of_pdf : (Pdf.pdfobject -> string) Stdlib.ref
val pdf_of_file :
(?revision:int -> string option -> string option -> string -> Pdf.t)
Stdlib.ref
val encode_predictor :
int -> int -> int -> int -> Pdfio.bytes -> Pdfio.bytes
val decode_predictor :
int -> int -> int -> int -> Pdfio.bytes -> Pdfio.bytes
end`