pub struct OutlineRecord {
pub title: String,
pub destination: Option<OutlineDestination>,
pub count: Option<i32>,
pub outline_level: Option<u32>,
pub color: Option<[f64; 3]>,
pub flags: Option<u32>,
}Expand description
One /OUT entry. Each record contributes a bookmark node to the
document outline tree the PDF writer assembles at end-of-job.
Fields§
§title: String/Title — required user-visible label.
destination: Option<OutlineDestination>/Page, /Dest, or /Action — what clicking the bookmark
resolves to. None is allowed (bookmark is a non-navigable
label).
count: Option<i32>/Count — Adobe nesting hint. Positive: this bookmark is
expanded with count direct children that immediately follow.
Negative: collapsed with |count| children. Zero / absent:
leaf. None = absent.
outline_level: Option<u32>/OutlineLevel — stet extension. Explicit nesting level
(1-based; 1 is top-level). When at least one record uses this,
the tree builder switches to level-based parenting and ignores
count.
color: Option<[f64; 3]>/Color — RGB triple in [0, 1], optional.
flags: Option<u32>/F — style flags: bit 0 = italic, bit 1 = bold (matches the
PDF 1.4 outline /F field).
Trait Implementations§
Source§impl Clone for OutlineRecord
impl Clone for OutlineRecord
Source§fn clone(&self) -> OutlineRecord
fn clone(&self) -> OutlineRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more