package camlpdf

  1. Overview
  2. Docs
type labelstyle =
  1. | DecimalArabic
  2. | UppercaseRoman
  3. | LowercaseRoman
  4. | UppercaseLetters
  5. | LowercaseLetters
  6. | NoLabelPrefixOnly
type t = {
  1. labelstyle : labelstyle;
  2. labelprefix : string option;
  3. startpage : int;
  4. startvalue : int;
}
val string_of_labelstyle : labelstyle -> string
val string_of_pagelabel : t -> string
val label_of_range : Pdf.t -> (Pdf.pdfobject * Pdf.pdfobject) -> t
val read : Pdf.t -> t list
val add_label : int -> t list -> t -> int -> t list

Add a label, rearranging existing labels.

val basic : t
val complete : t list -> t list

Make a complete set, so that each page has a number

val letter_string : int -> string
val string_of_pagenumber : int -> labelstyle -> string
val pagelabeltext_of_single : int -> t -> string
val pagelabeltext_of_pagenumber : int -> t list -> string
val pagelabel_of_single : int -> t -> t
val pagelabel_of_pagenumber : int -> t list -> t
val coalesce : t list -> t list
val merge_pagelabels : Pdf.t list -> int list list -> t list
val write : Pdf.t -> t list -> unit
val remove : Pdf.t -> unit
OCaml

Innovation. Community. Security.