29 lines
1.2 KiB
OCaml
29 lines
1.2 KiB
OCaml
(** Images *)
|
|
|
|
(** Print info when processing image *)
|
|
val debug_image_processing : bool ref
|
|
|
|
(** Extract images. *)
|
|
val extract_images :
|
|
?raw:bool -> ?path_to_p2p:string -> ?path_to_im:string ->
|
|
Cpdfmetadata.encoding -> bool -> bool -> Pdf.t -> int list -> string -> unit
|
|
|
|
(** Report image resolutions. *)
|
|
val image_resolution : Pdf.t -> int list -> float -> (int * string * int * int * float * float * int) list
|
|
|
|
(** List images in JSON format *)
|
|
val images : Pdf.t -> int list -> Cpdfyojson.Safe.t
|
|
|
|
(** Reprocess images *)
|
|
val process :
|
|
?q:int -> ?qlossless:int -> ?onebppmethod:string -> jbig2_lossy_threshold:float ->
|
|
length_threshold:int -> percentage_threshold:int -> pixel_threshold:int ->
|
|
dpi_threshold:int -> dpi_target:int -> factor:int -> interpolate:bool ->
|
|
path_to_jbig2enc:string -> path_to_convert:string -> int list -> Pdf.t -> unit
|
|
|
|
(**/**)
|
|
val image_of_input : (unit -> Pdfio.bytes -> Pdf.pdfobject * (int * Pdf.pdfobject) list) -> Pdfio.input -> Pdf.t
|
|
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
|