package camlpdf

  1. Overview
  2. Docs

Bookmarks

type t = {
  1. level : int;
  2. text : string;
  3. target : Pdfdest.t;
  4. isopen : bool;
}

The type of bookmarks.

val string_of_bookmark : t -> string

Debug string from a bookmark.

val read_bookmarks : ?preserve_actions:bool -> Pdf.t -> t list

Read the bookmarks from a document.

val remove_bookmarks : Pdf.t -> Pdf.t

Remove the bookmarks from a document.

val add_bookmarks : t list -> Pdf.t -> Pdf.t

Add bookmarks to a document, replacing any currently there.

val transform_bookmark : Pdftransform.transform_matrix -> t -> t

Transform a bookmark's destination

OCaml

Innovation. Community. Security.