package camlpdf

  1. Overview
  2. Docs

Name and Number Trees

NB. Subject to API changes.

val read_name_tree : Pdf.t -> Pdf.pdfobject -> (string * Pdf.pdfobject) list

Read a name tree as a flat (key, value) list.

val read_number_tree : Pdf.t -> Pdf.pdfobject -> (string * Pdf.pdfobject) list

Read a number tree as a flat (key, value) list but with the numbers as strings.

val build_name_tree : bool -> Pdf.t -> (string * Pdf.pdfobject) list -> Pdf.pdfobject

Build a name or number tree (bool: true if number, false otherwise) from flat (key, value) list.

val merge_name_trees_no_clash : Pdf.t -> Pdf.pdfobject list -> Pdf.pdfobject

Merge name trees, assuming no duplicate keys.

val merge_number_trees_no_clash : Pdf.t -> Pdf.pdfobject list -> Pdf.pdfobject

Merge number trees, assuming no duplicate keys.

OCaml

Innovation. Community. Security.