Struct pdf_writer::writers::MarkedRef
source · 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.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MarkedRef<'a>
impl<'a> RefUnwindSafe for MarkedRef<'a>
impl<'a> Send for MarkedRef<'a>
impl<'a> Sync for MarkedRef<'a>
impl<'a> Unpin for MarkedRef<'a>
impl<'a> !UnwindSafe for MarkedRef<'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