pub struct MarkedRef<'a> { /* private fields */ }
Expand description
Writer for a marked content reference dictionary. PDF 1.3+
This struct is created by StructChildren::marked_content_ref
and
StructElement::marked_content_child
.
Implementations§
source§impl<'a> MarkedRef<'a>
impl<'a> MarkedRef<'a>
sourcepub fn page(&mut self, page: Ref) -> &mut Self
pub fn page(&mut self, page: Ref) -> &mut Self
Write the /Pg
attribute to specify the page the referenced marked
content sequence is located on.
sourcepub fn stream(&mut self, stream: Ref) -> &mut Self
pub fn stream(&mut self, stream: Ref) -> &mut Self
Write the /Stm
attribute to specify the content stream containing this
marked content sequence if it was not on a page. If this content is
missing, writing the page attribute here or in the associated structure
element is required.
sourcepub fn stream_owner(&mut self, owner: Ref) -> &mut Self
pub fn stream_owner(&mut self, owner: Ref) -> &mut Self
Write the /StmOwn
attribute to specify which object owns the content
stream specified by the /Stm
attribute.
sourcepub fn marked_content_id(&mut self, id: i32) -> &mut Self
pub fn marked_content_id(&mut self, id: i32) -> &mut Self
Write the /MCID
attribute to specify the integer marked content
identifier. Required.
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.