pub enum ActionKind {
GoTo {
destination: Option<Destination>,
named_destination: Option<Vec<u8>>,
},
GoToR {
file: Option<FileSpec>,
destination: Option<Destination>,
named_destination: Option<Vec<u8>>,
new_window: Option<bool>,
},
GoToE {
file: Option<FileSpec>,
destination: Option<Destination>,
named_destination: Option<Vec<u8>>,
new_window: Option<bool>,
target: Option<Target>,
},
Launch {
file: Option<FileSpec>,
windows: Option<WindowsLaunch>,
new_window: Option<bool>,
},
Uri {
uri: String,
is_map: bool,
},
Named {
name: String,
},
JavaScript {
script: Option<String>,
},
Other {
kind: String,
entries: Dict,
},
}Expand description
What one action dictionary asks for (ISO 32000-1 §12.6.4, Table 198). The go-to family, launch, URI, named and JavaScript actions are read into their own entries; every other type keeps its dictionary.
Variants§
GoTo
GoTo (§12.6.4.2): a destination in this document. A named /D is
looked up; named_destination keeps the name either way.
GoToR
GoToR (§12.6.4.3): a destination in another PDF file, whose
explicit form numbers pages from 0 and whose named form cannot be
looked up here.
Fields
destination: Option<Destination>GoToE
GoToE (§12.6.4.4): a destination in an embedded PDF file reached
through target.
Fields
destination: Option<Destination>Launch
Launch (§12.6.4.5): an application to start or a document to
open or print.
Uri
URI (§12.6.4.7): a resource to resolve.
Fields
Named
Named (§12.6.4.11): a viewer action by name (/N).
JavaScript
JavaScript (§12.6.4.16): the script (/JS), a text string or a
text stream, decoded and never run.
Other
Any other /S value, its dictionary kept as written.