package cpdf

  1. Overview
  2. Docs

Annotations

val list_annotations : json:bool -> Cpdfmetadata.encoding -> Pdf.t -> unit

List the annotations to standard output in a given encoding. See cpdfmanual.pdf for the format details.

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

Return the annotations as a (pagenumber, content) list

val get_annotations_json : Pdf.t -> Pdfio.bytes

Get annotations as JSON

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

Copy the annotations on a given set of pages from a to b. b is returned.

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

Remove the annotations on given pages.