camlpdf

Read, write and modify PDF files
Library camlpdf
Module Pdfocg
type ocgusage
type ocg = {
ocg_name : string;
ocg_intent : string list;
ocg_usage : ocgusage option;
}
type ocgstate =
| OCG_ON
| OCG_OFF
| OCG_Unchanged
type ocglistmode =
| OCG_AllPages
| OCG_VisiblePages
type ocgappdict =
| AppDict
type ocgconfig = {
ocgconfig_name : string option;
ocgconfig_creator : string option;
ocgconfig_basestate : ocgstate;
ocgconfig_on : int list option;
ocgconfig_off : int list option;
ocgconfig_intent : string list;
ocgconfig_usage_application_dictionaries : ocgappdict list option;
ocgconfig_order : int Pdfutil.tree option;
ocgconfig_listmode : ocglistmode;
ocgconfig_rbgroups : int list list;
ocgconfig_locked : int list;
}
type ocgproperties = {
ocgs : (int * ocg) list;
ocg_default_config : ocgconfig;
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