cpdf-source/cpdfannot.mli

24 lines
770 B
OCaml
Raw Normal View History

2022-01-13 17:18:54 +01:00
(** Annotations *)
2021-12-21 14:44:46 +01:00
2023-04-22 17:58:05 +02:00
(* {2 Modern functions} *)
2023-04-18 17:39:51 +02:00
(** Get annotations as JSON *)
2023-04-22 16:28:11 +02:00
val get_annotations_json : Pdf.t -> int list -> Pdfio.bytes
2023-04-18 17:39:51 +02:00
(** Set annotations from JSON. *)
val set_annotations_json : Pdf.t -> Pdfio.input -> unit
2021-12-21 14:44:46 +01:00
2023-04-22 17:58:05 +02:00
(** Remove the annotations on given pages. *)
val remove_annotations : int list -> Pdf.t -> Pdf.t
2023-04-21 16:13:46 +02:00
2023-04-21 16:39:09 +02:00
(** Copy the annotations on a given set of pages *)
val copy_annotations : int list -> Pdf.t -> Pdf.t -> unit
2023-04-22 17:58:05 +02:00
(* {2 Old-style functions *)
(** Return the annotations as a simple old-style (pagenumber, content) list. *)
val get_annotations : Cpdfmetadata.encoding -> Pdf.t -> (int * string) list
(** List the annotations to standard output in a given encoding. *)
val list_annotations : int list -> Cpdfmetadata.encoding -> Pdf.t -> unit