pub struct FormXObjectBuilder { /* private fields */ }Expand description
Builder for creating form XObjects with graphics operations
Implementations§
Source§impl FormXObjectBuilder
impl FormXObjectBuilder
Sourcepub fn add_operation(self, op: impl Into<String>) -> Self
pub fn add_operation(self, op: impl Into<String>) -> Self
Add a graphics operation
Sourcepub fn fill_color(self, r: f64, g: f64, b: f64) -> Self
pub fn fill_color(self, r: f64, g: f64, b: f64) -> Self
Set fill color (RGB)
Sourcepub fn stroke_color(self, r: f64, g: f64, b: f64) -> Self
pub fn stroke_color(self, r: f64, g: f64, b: f64) -> Self
Set stroke color (RGB)
Sourcepub fn fill_stroke(self) -> Self
pub fn fill_stroke(self) -> Self
Fill and stroke path
Sourcepub fn save_state(self) -> Self
pub fn save_state(self) -> Self
Save graphics state
Sourcepub fn restore_state(self) -> Self
pub fn restore_state(self) -> Self
Restore graphics state
Sourcepub fn transparency_group(self, isolated: bool, knockout: bool) -> Self
pub fn transparency_group(self, isolated: bool, knockout: bool) -> Self
Add transparency group
Sourcepub fn build(self) -> FormXObject
pub fn build(self) -> FormXObject
Build the form XObject
Auto Trait Implementations§
impl Freeze for FormXObjectBuilder
impl RefUnwindSafe for FormXObjectBuilder
impl Send for FormXObjectBuilder
impl Sync for FormXObjectBuilder
impl Unpin for FormXObjectBuilder
impl UnwindSafe for FormXObjectBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more