Struct pdf_writer::writers::Group
source · pub struct Group<'a> { /* private fields */ }
Expand description
Writer for a group XObject dictionary. PDF 1.4+.
This struct is created by FormXObject::group
and Page::group
.
Implementations§
source§impl<'a> Group<'a>
impl<'a> Group<'a>
sourcepub fn transparency(&mut self) -> &mut Self
pub fn transparency(&mut self) -> &mut Self
Set the /S
attribute to /Transparency
. Required to set the remaining
transparency parameters.
sourcepub fn color_space(&mut self) -> ColorSpace<'_>
pub fn color_space(&mut self) -> ColorSpace<'_>
Start writing the /CS
attribute to set the color space.
This is optional for isolated groups and required for groups where the color space cannot be derived from the parent.
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 Group<'a>
impl<'a> RefUnwindSafe for Group<'a>
impl<'a> Send for Group<'a>
impl<'a> Sync for Group<'a>
impl<'a> Unpin for Group<'a>
impl<'a> !UnwindSafe for Group<'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