pub enum ActionTrigger {
CatalogOpen,
Catalog {
event: String,
},
Page {
page_index: usize,
event: String,
},
Annotation {
page_index: usize,
subtype: String,
event: String,
},
FormField {
field_name: Option<String>,
event: String,
},
NamedJavaScript {
name: String,
},
}Expand description
Where in the document an action is attached.
Variants§
CatalogOpen
Catalog /OpenAction — fired when the document is opened
(§7.7.2 Table 28 + §12.6.4 Table 198).
Catalog
Catalog /AA additional actions per §12.6.3 Table 197 —
WC (will-close), WS (will-save), DS (did-save),
WP (will-print), DP (did-print).
Page
Page /AA additional actions per §12.6.3 Table 196 —
O (page open) / C (page close).
Fields
Annotation
Annotation action — either the primary /A action or an
/AA entry per §12.5.3 Table 165 (E / X / D / U /
Fo / Bl / PO / PC / PV / PI).
Fields
FormField
Form-field action — /A action or /AA (Table 196)
K (keystroke) / F (format) / V (validate) / C
(calculate) entry on a form-field dict.
Fields
NamedJavaScript
Catalog /Names /JavaScript name-tree entry per §7.7.4
Table 31. The name is the name-tree key — typically the
JavaScript function name a /Named action can invoke.
Trait Implementations§
Source§impl Clone for ActionTrigger
impl Clone for ActionTrigger
Source§fn clone(&self) -> ActionTrigger
fn clone(&self) -> ActionTrigger
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ActionTrigger
impl Debug for ActionTrigger
impl Eq for ActionTrigger
Source§impl PartialEq for ActionTrigger
impl PartialEq for ActionTrigger
Source§fn eq(&self, other: &ActionTrigger) -> bool
fn eq(&self, other: &ActionTrigger) -> bool
self and other values to be equal, and is used by ==.