cpdf-source/cpdfsqueeze.mli

12 lines
423 B
OCaml
Raw Normal View History

2022-01-13 17:18:54 +01:00
(** Lossless compression *)
2021-12-18 17:26:33 +01:00
(** Compresses all streams in the PDF document which are uncompressed, using
/FlateDecode, leaving out metadata. If the PDF is encrypted, does nothing. *)
val recompress_pdf : Pdf.t -> Pdf.t
(** Decompresses all streams in a PDF document, assuming it isn't encrypted. *)
val decompress_pdf : Pdf.t -> Pdf.t
(** Squeeze a PDF *)
2023-06-21 16:38:32 +02:00
val squeeze : ?logto:string -> ?pagedata:bool -> Pdf.t -> unit