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 /Title attribute.

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>>

The number of written pairs.

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).

Write a sequence of pairs with primitive values.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Start writing the object.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.