pub struct MarkInfo<'a> { /* private fields */ }
Expand description
Writer for a mark information dictionary. PDF 1.4+
This struct is created by Catalog::mark_info
.
Implementations§
source§impl<'a> MarkInfo<'a>
impl<'a> MarkInfo<'a>
sourcepub fn marked(&mut self, conformant: bool) -> &mut Self
pub fn marked(&mut self, conformant: bool) -> &mut Self
Write the /Marked
attribute to indicate whether the document conforms
to the Tagged PDF specification.
Must be true
in some PDF/A profiles like PDF/A-2a.
sourcepub fn user_properties(&mut self, present: bool) -> &mut Self
pub fn user_properties(&mut self, present: bool) -> &mut Self
Write the /UserProperties
attribute to indicate whether the document
contains structure elements with user properties. PDF 1.6+.
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.
sourcepub fn pair<T: Primitive>(&mut self, key: Name<'_>, value: T) -> &mut Self
pub fn pair<T: Primitive>(&mut self, key: Name<'_>, value: T) -> &mut Self
Write a pair with a primitive value.
This is a shorthand for dict.insert(key).primitive(value)
.
sourcepub fn pairs<'n, T: Primitive>(
&mut self,
pairs: impl IntoIterator<Item = (Name<'n>, T)>,
) -> &mut Self
pub fn pairs<'n, T: Primitive>( &mut self, pairs: impl IntoIterator<Item = (Name<'n>, T)>, ) -> &mut Self
Write a sequence of pairs with primitive values.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MarkInfo<'a>
impl<'a> RefUnwindSafe for MarkInfo<'a>
impl<'a> Send for MarkInfo<'a>
impl<'a> Sync for MarkInfo<'a>
impl<'a> Unpin for MarkInfo<'a>
impl<'a> !UnwindSafe for MarkInfo<'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