Struct pdf_writer::writers::OutlineItem [−][src]
pub struct OutlineItem<'a> { /* fields omitted */ }
Expand description
Writer for an outline item dictionary.
This struct is created by PdfWriter::outline_item
.
Implementations
Write the /Parent
attribute which points to the item’s parent or the
top-level outline dictionary.
Write the /Prev
attribute which points to the previous item on the
item’s level.
Write the /Next
attribute which points to the next item on the item’s
level.
Write the /First
attribute which points to the item’s first child.
Write the /Last
attribute which points to the item’s last child.
Write the /Count
attribute. This tells the viewer how many outline
element children are currently visible. If the item is collapsed, this
number shall be negative indicating how many elements you would be able
to see if it was open.
Start writing the /Dest
attribute to set the destination of this
outline item.
Write the /Dest
attribute to set the destination of this
outline item to a named destination.
Write the /C
attribute using an RGB color. This sets the color in
which the outline item’s title should be rendered. PDF 1.4+.
Write the /F
attribute. PDF 1.4+.
Methods from Deref<Target = Dict<'a>>
Start writing a pair with an arbitrary value.
Write a pair with a primitive value.
This is a shorthand for dict.insert(key).primitive(value)
.