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) — routed through the shared NaN-sanitising
helper (issues #220 + #221) so non-finite inputs cannot produce
NaN/inf tokens that ISO 32000-1 §7.3.3 rejects.
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) — sanitised via shared helper.
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 UnsafeUnpin 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