module Cpdfredact:sig..end
Redaction.
type operation =
| |
Remove |
| |
Leave |
| |
Chop |
type detection =
| |
Touching |
| |
Enclosing |
typespec =operation * detection option
val redact : Pdf.t ->
text_spec:spec ->
image_spec:spec ->
inline_image_spec:spec ->
vector_spec:spec ->
annotation_spec:spec ->
path_to_jbig2dec:string ->
path_to_convert:string ->
path_to_jbig2enc:string ->
paths:(float * float * float * float) list ->
invert:bool ->
show:bool ->
color:Cpdfaddtext.colour ->
outline:bool ->
opacity:float -> linewidth:float -> underneath:bool -> int list -> Pdf.tRedact a PDF in the given shape in the given range.
val apply : Pdf.t ->
text_spec:spec ->
image_spec:spec ->
inline_image_spec:spec ->
vector_spec:spec ->
annotation_spec:spec ->
path_to_jbig2dec:string ->
path_to_convert:string ->
path_to_jbig2enc:string ->
?typ:string ->
invert:bool ->
show:bool ->
color:Cpdfaddtext.colour ->
outline:bool ->
opacity:float -> linewidth:float -> underneath:bool -> int list -> Pdf.tApply redaction annotations in a given range.
val show_bounding_boxes : fast:bool ->
paths:(float * float * float * float) option list ->
light:bool -> Pdf.t -> int list -> Pdf.tShow bounding boxes in the given shape or, if None, the whole page in the
given rage. light will use lighter colours.