package camlpdf

  1. Overview
  2. Docs

Optional Content Groups.

type ocgusage
type ocg = {
  1. ocg_name : string;
  2. ocg_intent : string list;
  3. ocg_usage : ocgusage option;
}
type ocgstate =
  1. | OCG_ON
  2. | OCG_OFF
  3. | OCG_Unchanged
type ocglistmode =
  1. | OCG_AllPages
  2. | OCG_VisiblePages
type ocgappdict
type ocgconfig = {
  1. ocgconfig_name : string option;
  2. ocgconfig_creator : string option;
  3. ocgconfig_basestate : ocgstate;
  4. ocgconfig_on : int list option;
  5. ocgconfig_off : int list option;
  6. ocgconfig_intent : string list;
  7. ocgconfig_usage_application_dictionaries : ocgappdict list option;
  8. ocgconfig_order : int Pdfutil.tree option;
  9. ocgconfig_listmode : ocglistmode;
  10. ocgconfig_rbgroups : int list list;
  11. ocgconfig_locked : int list;
}
type ocgproperties = {
  1. ocgs : (int * ocg) list;
  2. ocg_default_config : ocgconfig;
  3. ocg_configs : ocgconfig list;
}
val read_ocg : Pdf.t -> ocgproperties option

Read optional content data.

val write_ocg : Pdf.t -> ocgproperties -> unit

Write optional content data.

val print_document_ocg : Pdf.t -> unit

Print information about the document's Optional Content Groups to Standard Output. For debug only.

OCaml

Innovation. Community. Security.