Module Cpdfannot

module Cpdfannot: sig .. end

Annotations


val get_annotations_json : ?subtypes:Pdfannot.subtype list ->
?subtypes_no:Pdfannot.subtype list -> Pdf.t -> int list -> Pdfio.bytes

Get annotations as JSON

val set_annotations_json : Pdf.t -> Pdfio.input -> unit

Set annotations from JSON.

val remove_annotations : int list -> Pdf.t -> Pdf.t

Remove the annotations on given pages.

val copy_annotations : int list -> Pdf.t -> Pdf.t -> unit

Copy the annotations on a given set of pages

val add_annotation : float * float * float * float ->
fill_color:Cpdfutil.colour ->
outline_color:Cpdfutil.colour ->
applied_opacity:float ->
overlay:string option ->
overlay_text_colour:Cpdfutil.colour ->
overlay_justification:Cpdfutil.justification ->
overlay_repeat:bool ->
overlay_auto_size:bool ->
font:Cpdfembed.cpdffont ->
fontsize:float ->
text_opacity:float ->
linespacing:float ->
linewidth:float -> outline:bool -> Pdf.t -> int list -> Pdf.t

Add an annotation (presently just redaction).

val stamp_annotation_appearance : Pdf.t -> Pdfpage.t -> Pdf.pdfobject -> int -> Pdfpage.t

Stamp an annotation appearance.

val flatten : ?subtypes:Pdfannot.subtype list ->
?subtypes_no:Pdfannot.subtype list -> Pdf.t -> int list -> Pdf.t

Flatten annotations.

val subtype_of_string : string -> Pdfannot.subtype

Annotation type from a string.

val get_annotations : Cpdfmetadata.encoding -> Pdf.t -> (int * string) list

Return the annotations as a simple old-style (pagenumber, content) list.

val list_annotations : int list -> Cpdfmetadata.encoding -> Pdf.t -> unit

List the annotations to standard output in a given encoding.