cpdf-source/cpdfimage.mli

34 lines
1.6 KiB
OCaml
Raw Normal View History

2022-01-13 16:35:03 +00:00
(** Images *)
2023-12-28 16:18:25 +00:00
(** Print info when processing image *)
val debug_image_processing : bool ref
2022-01-13 16:35:03 +00:00
(** Extract images. *)
2023-12-28 15:48:30 +00:00
val extract_images :
?raw:bool -> ?path_to_p2p:string -> ?path_to_im:string ->
Cpdfmetadata.encoding -> bool -> bool -> Pdf.t -> int list -> string -> unit
2022-01-13 16:35:03 +00:00
(** Report image resolutions. *)
val image_resolution : Pdf.t -> int list -> float -> (int * string * int * int * float * float * int) list
2024-03-04 15:16:14 +00:00
(** Report image resolution data in JSON format *)
2024-02-07 14:42:38 +00:00
val image_resolution_json : Pdf.t -> int list -> float -> Pdfio.bytes
2023-11-13 17:55:59 +00:00
(** List images in JSON format *)
val images : Pdf.t -> int list -> Cpdfyojson.Safe.t
2024-07-24 14:54:12 +01:00
(** Reprocess images. See manual for details. *)
val process :
q:float -> qlossless:float -> onebppmethod:string -> jbig2_lossy_threshold:float ->
length_threshold:int -> percentage_threshold:float -> pixel_threshold:int ->
dpi_threshold:float -> factor:float -> interpolate:bool ->
jpeg_to_jpeg_scale:float -> jpeg_to_jpeg_dpi:float ->
2024-01-04 11:33:17 +00:00
path_to_jbig2enc:string -> path_to_convert:string -> int list -> Pdf.t -> unit
2023-12-06 12:20:27 +00:00
(**/**)
2024-09-30 18:26:39 +01:00
val image_of_input : ?subformat:Cpdfua.subformat -> ?title:string -> process_struct_tree:bool -> (unit -> Pdfio.bytes -> Pdf.pdfobject * (int * Pdf.pdfobject) list) -> Pdfio.input -> Pdf.t
2023-12-04 16:32:12 +00:00
val obj_of_jpeg_data : Pdfio.bytes -> Pdf.pdfobject * (int * Pdf.pdfobject) list
val obj_of_png_data : Pdfio.bytes -> Pdf.pdfobject * (int * Pdf.pdfobject) list
val obj_of_jbig2_data : ?global:Pdfio.bytes -> Pdfio.bytes -> Pdf.pdfobject * (int * Pdf.pdfobject) list
2024-03-22 13:57:04 +00:00
val obj_of_jpeg2000_data : Pdfio.bytes -> Pdf.pdfobject * (int * Pdf.pdfobject) list