Struct pdf_writer::writers::ExtGraphicsState [−][src]
pub struct ExtGraphicsState<'a> { /* fields omitted */ }
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
LW
: Set the line width. PDF 1.3+.
LC
: Set the line cap style. PDF 1.3+.
LJ
: Set the line join style. PDF 1.3+.
ML
: Set the miter limit. PDF 1.3+.
pub 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+.
RI
: Set the rendering intent. PDF 1.3+.
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+.
op
: Set the overprint mode for fill operations. PDF 1.3+.
BG
: Set the black generation function.
BG2
: Set the black-generation function back to the function that has
been in effect at the beginning of the page. PDF 1.3+.
UCR
: Set the undercolor removal function.
UCR2
: Set the undercolor removal function back to the function that
has been in effect at the beginning of the page. PDF 1.3+.
TR2
: Set the transfer function back to the function that has been in
effect at the beginning of the page. PDF 1.3+.
HT
: Set the halftone back to the halftone that has been in effect at
the beginning of the page.
FL
: Set the flatness tolerance. PDF 1.3+.
SM
: Set the smoothness tolerance. PDF 1.3+.
SA
: Set automatic stroke adjustment.
BM
: Set the blend mode. PDF 1.4+.
SMask
: Set the soft mask using a dictionary. PDF 1.4+.
SMask
: Set the soft mask using a name. PDF 1.4+.
CA
: Set the stroking alpha constant. PDF 1.4+.
ca
: Set the non-stroking alpha constant. PDF 1.4+.
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+.
TK
: Set the text knockout flag. PDF 1.4+.
Methods from Deref<Target = Dict<'a>>
Start writing a pair with an arbitrary value.
Write a pair with a primitive value.
This is a shorthand for dict.insert(key).primitive(value)
.