package camlpdf

  1. Overview
  2. Docs
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 =
  1. | AppDict
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_ocgappdict : 'a -> 'b -> ocgappdict
val read_config : Pdf.t -> Pdf.pdfobject -> ocgconfig
val read_ocg_usage : 'a -> 'b -> 'c option
val read_individual_ocg : Pdf.t -> Pdf.pdfobject -> ocg
val read_ocg : Pdf.t -> ocgproperties option
val write_ocg : 'a -> 'b -> unit
val print_ocg : (int * ocg) -> unit
val print_ocg_config : ocgconfig -> unit
val print_document_ocg : Pdf.t -> unit
OCaml

Innovation. Community. Security.