Struct pdf_writer::writers::StructTreeRoot
source · pub struct StructTreeRoot<'a> { /* private fields */ }
Expand description
Writer for a structure tree root dictionary. PDF 1.3+
This struct is created by Catalog::struct_tree_root
.
Implementations§
source§impl<'a> StructTreeRoot<'a>
impl<'a> StructTreeRoot<'a>
sourcepub fn child(&mut self, id: Ref) -> &mut Self
pub fn child(&mut self, id: Ref) -> &mut Self
Write the /K
attribute to reference the immediate child of this
element.
sourcepub fn children(&mut self) -> TypedArray<'_, Ref>
pub fn children(&mut self) -> TypedArray<'_, Ref>
Start writing the /K
attribute to reference the immediate children of
this element.
sourcepub fn id_tree(&mut self) -> NameTree<'_, Ref>
pub fn id_tree(&mut self) -> NameTree<'_, Ref>
Start writing the /IDTree
attribute to map element identifiers to
their corresponding structure element objects. Required if any elements
have element identifiers.
sourcepub fn parent_tree(&mut self) -> NumberTree<'_, Ref>
pub fn parent_tree(&mut self) -> NumberTree<'_, Ref>
Start writing the /ParentTree
attribute to maps structure elements to
the content items they belong to. Required if any structure elements
contain content items.
sourcepub fn parent_tree_next_key(&mut self, key: i32) -> &mut Self
pub fn parent_tree_next_key(&mut self, key: i32) -> &mut Self
Write the /ParentTreeNextKey
attribute to specify the next available key
for the /ParentTree
dictionary.
Methods from Deref<Target = Dict<'a>>§
sourcepub fn insert(&mut self, key: Name<'_>) -> Obj<'_>
pub fn insert(&mut self, key: Name<'_>) -> Obj<'_>
Start writing a pair with an arbitrary value.
Trait Implementations§
source§impl<'a> Deref for StructTreeRoot<'a>
impl<'a> Deref for StructTreeRoot<'a>
source§impl<'a> DerefMut for StructTreeRoot<'a>
impl<'a> DerefMut for StructTreeRoot<'a>
source§impl<'a, 'any> Rewrite<'a> for StructTreeRoot<'any>
impl<'a, 'any> Rewrite<'a> for StructTreeRoot<'any>
§type Output = StructTreeRoot<'a>
type Output = StructTreeRoot<'a>
The writer with the rewritten lifetime.
Auto Trait Implementations§
impl<'a> Freeze for StructTreeRoot<'a>
impl<'a> RefUnwindSafe for StructTreeRoot<'a>
impl<'a> Send for StructTreeRoot<'a>
impl<'a> Sync for StructTreeRoot<'a>
impl<'a> Unpin for StructTreeRoot<'a>
impl<'a> !UnwindSafe for StructTreeRoot<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more