cpdf-source/cpdfbookmarks.mli

25 lines
1.1 KiB
OCaml
Raw Normal View History

2021-12-21 14:44:46 +01:00
(** {2 Bookmarks} *)
(** [parse_bookmark_file verify pdf input] parses the bookmark file in [input].
Details of the bookmark file format can be found in cpdfmanual.pdf *)
val parse_bookmark_file : bool -> Pdf.t -> Pdfio.input -> Pdfmarks.t list
(** [add_bookmarks verify input pdf] adds bookmarks from the bookmark file
give. If [verify] is given, bookmarks will be verified to ensure, for example,
that they are not out of the page range. *)
val add_bookmarks : json:bool -> bool -> Pdfio.input -> Pdf.t -> Pdf.t
(** [list_bookmarks encoding range pdf output] lists the bookmarks to the given
output in the format specified in cpdfmanual.pdf *)
val list_bookmarks : json:bool -> Cpdfmetadata.encoding -> int list -> Pdf.t -> Pdfio.output -> unit
2021-12-21 15:57:42 +01:00
val name_of_spec : Cpdfmetadata.encoding ->
Pdfmarks.t list ->
Pdf.t -> int -> string -> int -> string -> int -> int -> string
2021-12-21 16:06:40 +01:00
val add_bookmark_title : string -> bool -> Pdf.t -> Pdf.t
2021-12-21 16:33:56 +01:00
2021-12-21 16:06:40 +01:00
val bookmarks_open_to_level : int -> Pdf.t -> Pdf.t
2021-12-21 16:33:56 +01:00
val change_bookmark : (int, int) Hashtbl.t -> Pdfmarks.t -> Pdfmarks.t