pub enum PdfVectorOperator {
Show 28 variants
Save,
Restore,
Transform {
matrix: [f64; 6],
},
FillColor {
rgb: [f64; 3],
},
StrokeColor {
rgb: [f64; 3],
},
LineWidth {
width: f64,
},
LineCap {
cap: u8,
},
LineJoin {
join: u8,
},
MiterLimit {
limit: f64,
},
Dash {
lengths: Vec<f64>,
phase: f64,
},
Path {
paint: PdfVectorPaint,
commands: Vec<f64>,
},
Clip {
even_odd: bool,
},
TextClip,
Text {
quad: [f64; 8],
invisible: bool,
},
Image {
transforms: Vec<[f64; 6]>,
},
Shading,
FillPattern,
StrokePattern,
GraphicsState {
line_width: Option<f64>,
line_cap: Option<u8>,
line_join: Option<u8>,
miter_limit: Option<f64>,
dash: Option<(Vec<f64>, f64)>,
transparency: Vec<String>,
unsupported: Vec<String>,
},
GroupBegin {
composited: bool,
matrix: Option<[f64; 6]>,
bbox: Option<[f64; 4]>,
},
GroupEnd,
FormBegin {
matrix: Option<[f64; 6]>,
bbox: Option<[f64; 4]>,
},
FormEnd,
AnnotationBegin {
rect: Option<[f64; 4]>,
},
AnnotationEnd,
MarkedContent {
visible: bool,
},
EndMarkedContent,
Unsupported {
operator: String,
},
}Expand description
One pinned-decoder operation. Geometry kinds carry construction-space numbers; semantic kinds carry exactly what the fidelity report needs to scope, place and classify content the planner cannot convert.
Variants§
Save
Restore
Transform
FillColor
StrokeColor
LineWidth
LineCap
LineJoin
MiterLimit
Dash
Path
Clip
Pending clip consumed by the next path, after that path’s own paint.
TextClip
Painted text was added to the clip at ET; the rest of the scope is clipped.
Text
One text run. quad is its estimated em-box in construction space
(before the current transform); invisible is text render mode 3/7.
Image
Raster paint. Each transform maps the unit square in construction space.
Shading
sh paints the current clip with a shading; its extent is the clip.
FillPattern
StrokePattern
GraphicsState
Decoded ExtGState dictionary. Supported line state applies in PDF.js order; alpha/blend/soft-mask entries taint the scope as transparency.
Fields
GroupBegin
Transparency group wrapping a form. composited means PDF.js renders
it through an offscreen group rather than painting directly.
GroupEnd
FormBegin
Form XObject: implicit save, matrix concatenation and bbox clip.
FormEnd
AnnotationBegin
Annotation appearance stream; rect is in page space.
AnnotationEnd
MarkedContent
Marked content; visible resolves optional-content configuration.
EndMarkedContent
Unsupported
Decoder has encountered semantics outside the qualified subset. The operation and everything painted afterwards in its scope is omitted.
Trait Implementations§
Source§impl Clone for PdfVectorOperator
impl Clone for PdfVectorOperator
Source§fn clone(&self) -> PdfVectorOperator
fn clone(&self) -> PdfVectorOperator
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PdfVectorOperator
impl Debug for PdfVectorOperator
Source§impl<'de> Deserialize<'de> for PdfVectorOperator
impl<'de> Deserialize<'de> for PdfVectorOperator
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for PdfVectorOperator
impl RefUnwindSafe for PdfVectorOperator
impl Send for PdfVectorOperator
impl Sync for PdfVectorOperator
impl Unpin for PdfVectorOperator
impl UnsafeUnpin for PdfVectorOperator
impl UnwindSafe for PdfVectorOperator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.