2022-01-13 17:18:54 +01:00
|
|
|
(** Annotations *)
|
2021-12-21 14:44:46 +01:00
|
|
|
|
|
|
|
(** List the annotations to standard output in a given encoding. See cpdfmanual.pdf for the format details. *)
|
2023-01-11 07:55:50 +01:00
|
|
|
val list_annotations : json:bool -> int list -> Cpdfmetadata.encoding -> Pdf.t -> unit
|
2021-12-21 14:44:46 +01:00
|
|
|
|
|
|
|
(** Return the annotations as a (pagenumber, content) list *)
|
|
|
|
val get_annotations : Cpdfmetadata.encoding -> Pdf.t -> (int * string) list
|
|
|
|
|
2022-01-16 17:30:36 +01:00
|
|
|
(** Get annotations as JSON *)
|
|
|
|
val get_annotations_json : Pdf.t -> Pdfio.bytes
|
|
|
|
|
2021-12-21 14:44:46 +01:00
|
|
|
(** Copy the annotations on a given set of pages from a to b. b is returned. *)
|
|
|
|
val copy_annotations : int list -> Pdf.t -> Pdf.t -> Pdf.t
|
|
|
|
|
|
|
|
(** Remove the annotations on given pages. *)
|
|
|
|
val remove_annotations : int list -> Pdf.t -> Pdf.t
|