sig
  type encoding = ASCIIHex | ASCII85 | RunLength | Flate
  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 ->
    ?only_if_smaller:bool ->
    ?predictor:Pdfcodec.predictor ->
    ?predictor_columns:int -> Pdf.pdfobject -> unit
  val decode_pdfstream : Pdf.t -> Pdf.pdfobject -> unit
  val decode_pdfstream_onestage : Pdf.t -> Pdf.pdfobject -> unit
  val decode_pdfstream_until_unknown : 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 debug : bool Stdlib.ref
  val string_of_pdf : (Pdf.pdfobject -> string) Stdlib.ref
  val encode_predictor :
    int -> int -> int -> int -> Pdfio.bytes -> Pdfio.bytes
end