-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathpdfocg.mli
More file actions
55 lines (44 loc) · 1.47 KB
/
pdfocg.mli
File metadata and controls
55 lines (44 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
(** Optional Content Groups. *)
open Pdfutil
type ocgusage =
{ocg_creatorinfo : (string * string) option;
ocg_language : (string * string option) option;
ocg_export : string option;
ocg_zoom_min : float option;
ocg_zoom_max : float option;
ocg_print_subtype : string option;
ocg_print_printstate : string option;
ocg_viewstate : string option;
ocg_user : (string * string list) option;
ocg_page_element_subtype : string option}
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 ocgevent = OCG_View | OCG_Print | OCG_Export
type ocgappdict =
{ocg_event : ocgevent;
ocg_ocgs : int list;
ocg_category : string list}
type ocgconfig =
{ocgconfig_name : string option;
ocgconfig_creator : string option;
ocgconfig_basestate : ocgstate;
ocgconfig_on : int list;
ocgconfig_off : int list;
ocgconfig_intent: string list;
ocgconfig_usage_application_dictionaries: ocgappdict list;
ocgconfig_order : (string option * int list) list option;
ocgconfig_listmode : ocglistmode;
ocgconfig_rbgroups : int list list option;
ocgconfig_locked : int list}
type t =
{ocgs : (int * ocg) list;
ocg_default_config : ocgconfig;
ocg_configs : ocgconfig list}
(** Read optional content data. *)
val read_ocg : Pdf.t -> t option
(** Write optional content data. *)
val write_ocg : Pdf.t -> t -> unit