#[non_exhaustive]pub enum OutlineAction {
Uri(String),
GoTo(GoToTarget),
JavaScript(String),
Named(String),
}Expand description
Outline-action passthrough. Despite the name, this enum is shared
across every place an “action dict” appears — outline /Action,
link annotation /A, page /AA open / close — because the on-the-
wire shape is identical.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Uri(String)
<< /S /URI /URI (string) >>.
GoTo(GoToTarget)
<< /S /GoTo /D <name-or-array> >> — the destination is either
a named destination (Named) or an explicit page+view
(Explicit).
JavaScript(String)
<< /S /JavaScript /JS (string) >> — pass-through. stet does
not execute JavaScript; the bytes are round-tripped verbatim
so a downstream viewer (Acrobat, Foxit) that does run JS can
pick them up.
Named(String)
<< /S /Named /N /<name> >> — a built-in viewer command
(e.g. /NextPage, /PrevPage, /FirstPage, /LastPage,
/Print, /Find, …). The producer-supplied name is round-
tripped verbatim; viewers that don’t recognise it ignore the
action.
Trait Implementations§
Source§impl Clone for OutlineAction
impl Clone for OutlineAction
Source§fn clone(&self) -> OutlineAction
fn clone(&self) -> OutlineAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more