1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
(** Images *)
(** Print info when processing image. *)
val debug_image_processing : bool ref
(** Extract images. *)
val extract_images :
merge_masks:bool -> inline:bool -> ?raw:bool -> ?path_to_p2p:string -> ?path_to_im:string ->
Cpdfmetadata.encoding -> bool -> bool -> Pdf.t -> int list -> string -> unit
(** Extract single image. *)
val extract_single_image :
merge_masks:bool -> ?raw:bool -> ?path_to_p2p:string -> ?path_to_im:string ->
Cpdfmetadata.encoding -> Pdf.t -> int -> string -> unit
(** Report image resolutions. *)
val image_resolution : inline:bool -> Pdf.t -> int list -> float -> (int * string * int * int * float * float * int) list
(** Report image resolution data in JSON format. *)
val image_resolution_json : inline:bool -> Pdf.t -> int list -> float -> Pdfio.bytes
(** List images in JSON format. *)
val images : inline:bool -> Pdf.t -> int list -> Cpdfyojson.Safe.t
(** Reprocess images. See cpdfmanual.pdf for details. *)
val process :
im:string -> force:bool -> q:float -> qlossless:float -> qlossless2000: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 ->
path_to_jbig2dec:string -> path_to_jbig2enc:string -> path_to_convert:string -> int list -> Pdf.t -> unit
(**/**)
val image_of_input : ?subformat:Cpdfua.subformat -> ?title:string -> process_struct_tree:bool -> (Pdf.t -> Pdfio.bytes -> Pdf.pdfobject * (int * Pdf.pdfobject) list) -> Pdfio.input -> Pdf.t
val obj_of_jpeg_data : path_to_im:string -> Pdfio.bytes -> Pdf.pdfobject * (int * Pdf.pdfobject) list
val obj_of_png_data : Pdf.t -> Pdfio.bytes -> Pdf.pdfobject * (int * Pdf.pdfobject) list
val obj_of_jbig2_data : ?global:Pdfio.bytes -> Pdfio.bytes -> Pdf.pdfobject * (int * Pdf.pdfobject) list
val obj_of_jpeg2000_data : Pdfio.bytes -> Pdf.pdfobject * (int * Pdf.pdfobject) list
|