Struct pdf_writer::writers::ExtGraphicsState
source · [−]pub struct ExtGraphicsState<'a> { /* private fields */ }
Expand description
Writer for a dictionary with additional parameters for the graphics state.
This struct is created by PdfWriter::ext_graphics
and
ShadingPattern::ext_graphics
.
Implementations
sourceimpl<'a> ExtGraphicsState<'a>
impl<'a> ExtGraphicsState<'a>
sourcepub fn line_width(&mut self, width: f32) -> &mut Self
pub fn line_width(&mut self, width: f32) -> &mut Self
LW
: Set the line width. PDF 1.3+.
sourcepub fn line_cap(&mut self, cap: LineCapStyle) -> &mut Self
pub fn line_cap(&mut self, cap: LineCapStyle) -> &mut Self
LC
: Set the line cap style. PDF 1.3+.
sourcepub fn line_join(&mut self, join: LineJoinStyle) -> &mut Self
pub fn line_join(&mut self, join: LineJoinStyle) -> &mut Self
LJ
: Set the line join style. PDF 1.3+.
sourcepub fn miter_limit(&mut self, limit: f32) -> &mut Self
pub fn miter_limit(&mut self, limit: f32) -> &mut Self
ML
: Set the miter limit. PDF 1.3+.
sourcepub fn dash_pattern(
&mut self,
pattern: impl IntoIterator<Item = f32>,
phase: f32
) -> &mut Self
pub fn dash_pattern(
&mut self,
pattern: impl IntoIterator<Item = f32>,
phase: f32
) -> &mut Self
D
: Set the dash pattern. PDF 1.3+.
sourcepub fn rendering_intent(&mut self, intent: RenderingIntent) -> &mut Self
pub fn rendering_intent(&mut self, intent: RenderingIntent) -> &mut Self
RI
: Set the rendering intent. PDF 1.3+.
sourcepub fn overprint(&mut self, overprint: bool) -> &mut Self
pub fn overprint(&mut self, overprint: bool) -> &mut Self
OP
: Set the overprint mode for all operations, except if an op
entry
is present. If so, only influence the stroking operations. PDF 1.2+.
sourcepub fn overprint_fill(&mut self, overprint: bool) -> &mut Self
pub fn overprint_fill(&mut self, overprint: bool) -> &mut Self
op
: Set the overprint mode for fill operations. PDF 1.3+.
sourcepub fn black_generation(&mut self, func: Ref) -> &mut Self
pub fn black_generation(&mut self, func: Ref) -> &mut Self
BG
: Set the black generation function.
sourcepub fn black_generation_default(&mut self) -> &mut Self
pub fn black_generation_default(&mut self) -> &mut Self
BG2
: Set the black-generation function back to the function that has
been in effect at the beginning of the page. PDF 1.3+.
sourcepub fn undercolor_removal(&mut self, func: Ref) -> &mut Self
pub fn undercolor_removal(&mut self, func: Ref) -> &mut Self
UCR
: Set the undercolor removal function.
sourcepub fn undercolor_removal_default(&mut self) -> &mut Self
pub fn undercolor_removal_default(&mut self) -> &mut Self
UCR2
: Set the undercolor removal function back to the function that
has been in effect at the beginning of the page. PDF 1.3+.
sourcepub fn transfer_default(&mut self) -> &mut Self
pub fn transfer_default(&mut self) -> &mut Self
TR2
: Set the transfer function back to the function that has been in
effect at the beginning of the page. PDF 1.3+.
sourcepub fn halftone_default(&mut self) -> &mut Self
pub fn halftone_default(&mut self) -> &mut Self
HT
: Set the halftone back to the halftone that has been in effect at
the beginning of the page.
sourcepub fn flatness(&mut self, tolerance: f32) -> &mut Self
pub fn flatness(&mut self, tolerance: f32) -> &mut Self
FL
: Set the flatness tolerance. PDF 1.3+.
sourcepub fn smoothness(&mut self, tolerance: f32) -> &mut Self
pub fn smoothness(&mut self, tolerance: f32) -> &mut Self
SM
: Set the smoothness tolerance. PDF 1.3+.
sourcepub fn stroke_adjustment(&mut self, adjust: bool) -> &mut Self
pub fn stroke_adjustment(&mut self, adjust: bool) -> &mut Self
SA
: Set automatic stroke adjustment.
sourcepub fn blend_mode(&mut self, mode: BlendMode) -> &mut Self
pub fn blend_mode(&mut self, mode: BlendMode) -> &mut Self
BM
: Set the blend mode. PDF 1.4+.
sourcepub fn soft_mask(&mut self) -> SoftMask<'_>
pub fn soft_mask(&mut self) -> SoftMask<'_>
SMask
: Set the soft mask using a dictionary. PDF 1.4+.
sourcepub fn soft_mask_name(&mut self, mask: Name<'_>) -> &mut Self
pub fn soft_mask_name(&mut self, mask: Name<'_>) -> &mut Self
SMask
: Set the soft mask using a name. PDF 1.4+.
sourcepub fn stroking_alpha(&mut self, alpha: f32) -> &mut Self
pub fn stroking_alpha(&mut self, alpha: f32) -> &mut Self
CA
: Set the stroking alpha constant. PDF 1.4+.
sourcepub fn non_stroking_alpha(&mut self, alpha: f32) -> &mut Self
pub fn non_stroking_alpha(&mut self, alpha: f32) -> &mut Self
ca
: Set the non-stroking alpha constant. PDF 1.4+.
sourcepub fn alpha_source(&mut self, source: bool) -> &mut Self
pub fn alpha_source(&mut self, source: bool) -> &mut Self
AIS
: Set the alpha source flag. CA
and ca
values as well as the
SMask
will be interpreted as shape instead of opacity. PDF 1.4+.
sourcepub fn text_knockout(&mut self, knockout: bool) -> &mut Self
pub fn text_knockout(&mut self, knockout: bool) -> &mut Self
TK
: Set the text knockout flag. PDF 1.4+.
Methods from Deref<Target = Dict<'a>>
Trait Implementations
sourceimpl<'a> Deref for ExtGraphicsState<'a>
impl<'a> Deref for ExtGraphicsState<'a>
sourceimpl<'a> DerefMut for ExtGraphicsState<'a>
impl<'a> DerefMut for ExtGraphicsState<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ExtGraphicsState<'a>
impl<'a> Send for ExtGraphicsState<'a>
impl<'a> Sync for ExtGraphicsState<'a>
impl<'a> Unpin for ExtGraphicsState<'a>
impl<'a> !UnwindSafe for ExtGraphicsState<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more