Module Cpdfsqueeze

module Cpdfsqueeze: sig .. end

Lossless compression


val recompress_pdf : Pdf.t -> Pdf.t

Compresses all streams in the PDF document which are uncompressed, using /FlateDecode, leaving out metadata. If the PDF is encrypted, does nothing.

val decompress_pdf : Pdf.t -> Pdf.t

Decompresses all streams in a PDF document, assuming it isn't encrypted.

val squeeze : ?logto:string -> ?pagedata:bool -> Pdf.t -> unit

Squeeze a PDF