File: pdfmarks.mli

package info (click to toggle)
camlpdf 0.5-1
  • links: PTS, VCS
  • area: non-free
  • in suites: squeeze, wheezy
  • size: 1,516 kB
  • ctags: 2,689
  • sloc: ml: 18,229; ansic: 139; makefile: 139
file content (22 lines) | stat: -rw-r--r-- 615 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(** Bookmarks - Incomplete and unsupported. *)
type target = int(* Just page number for now *)

(** The type of bookmarks. *)
type bookmark =
  {level : int;
   text : string;
   target : target;
   isopen : bool}

val pagenumber_of_target : target -> int

val target_of_pagenumber : int -> target

val read_bookmarks : Pdf.pdfdoc -> bookmark list
(** Read the bookmarks from a document. *)

val remove_bookmarks : Pdf.pdfdoc -> Pdf.pdfdoc
(** Remove the bookmarks from a document. *)

val add_bookmarks : bookmark list -> Pdf.pdfdoc -> Pdf.pdfdoc
(** Add bookmarks to a document, replacing any currently there. *)