camlpdf

Read, write and modify PDF files
Library camlpdf
Module Pdfpagelabels
type labelstyle =
| DecimalArabic
| UppercaseRoman
| LowercaseRoman
| UppercaseLetters
| LowercaseLetters
| NoLabelPrefixOnly
type t = {
labelstyle : labelstyle;
labelprefix : string option;
startpage : int;
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 remove : Pdf.t -> unit
val write : Pdf.t -> t list -> unit