Module Pdfmarks

module Pdfmarks: sig .. end

Bookmarks


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

The type of bookmarks.

val string_of_bookmark : t -> string

Debug string from a bookmark.

val read_bookmarks : 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