pub enum Op {
Show 45 variants
BeginMarkedContent {
tag: Name,
properties: Option<Primitive>,
},
EndMarkedContent,
MarkedContentPoint {
tag: Name,
properties: Option<Primitive>,
},
Close,
MoveTo {
p: Point,
},
LineTo {
p: Point,
},
CurveTo {
c1: Point,
c2: Point,
p: Point,
},
Rect {
rect: Rect,
},
EndPath,
Stroke,
FillAndStroke {
winding: Winding,
},
Fill {
winding: Winding,
},
Shade {
name: Name,
},
Clip {
winding: Winding,
},
Save,
Restore,
Transform {
matrix: Matrix,
},
LineWidth {
width: f32,
},
Dash {
pattern: Vec<f32>,
phase: f32,
},
LineJoin {
join: LineJoin,
},
LineCap {
cap: LineCap,
},
MiterLimit {
limit: f32,
},
Flatness {
tolerance: f32,
},
GraphicsState {
name: Name,
},
StrokeColor {
color: Color,
},
FillColor {
color: Color,
},
FillColorSpace {
name: Name,
},
StrokeColorSpace {
name: Name,
},
RenderingIntent {
intent: RenderingIntent,
},
BeginText,
EndText,
CharSpacing {
char_space: f32,
},
WordSpacing {
word_space: f32,
},
TextScaling {
horiz_scale: f32,
},
Leading {
leading: f32,
},
TextFont {
name: Name,
size: f32,
},
TextRenderMode {
mode: TextMode,
},
TextRise {
rise: f32,
},
MoveTextPosition {
translation: Point,
},
SetTextMatrix {
matrix: Matrix,
},
TextNewline,
TextDraw {
text: PdfString,
},
TextDrawAdjusted {
array: Vec<TextDrawAdjusted>,
},
XObject {
name: Name,
},
InlineImage {
image: Arc<ImageXObject>,
},
}
Expand description
Graphics Operator
See PDF32000 A.2
Variants§
BeginMarkedContent
Begin a marked comtent sequence
Pairs with the following EndMarkedContent.
generated by operators BMC
and BDC
EndMarkedContent
End a marked content sequence.
Pairs with the previous BeginMarkedContent.
generated by operator EMC
MarkedContentPoint
A marked content point.
generated by operators MP
and DP
.
Close
MoveTo
LineTo
CurveTo
Rect
EndPath
Stroke
FillAndStroke
Fill and Stroke operation
generated by operators b
, B
, b*
, B*
close
indicates whether the path should be closed first
Fill
Shade
Fill using the named shading pattern
operator: sh
Clip
Save
Restore
Transform
LineWidth
Dash
LineJoin
LineCap
MiterLimit
Flatness
GraphicsState
StrokeColor
FillColor
FillColorSpace
StrokeColorSpace
RenderingIntent
Fields
§
intent: RenderingIntent
BeginText
EndText
CharSpacing
WordSpacing
TextScaling
Leading
TextFont
TextRenderMode
TextRise
Ts
MoveTextPosition
Td
, TD
SetTextMatrix
Tm
TextNewline
T*
TextDraw
Tj
TextDrawAdjusted
Fields
§
array: Vec<TextDrawAdjusted>
XObject
InlineImage
Fields
§
image: Arc<ImageXObject>
Trait Implementations§
source§impl DataSize for Op
impl DataSize for Op
source§const IS_DYNAMIC: bool = true
const IS_DYNAMIC: bool = true
If
true
, the type has a heap size that can vary at runtime, depending on the actual value.source§const STATIC_HEAP_SIZE: usize = 0usize
const STATIC_HEAP_SIZE: usize = 0usize
The amount of space a value of the type always occupies. If
IS_DYNAMIC
is false, this is
the total amount of heap memory occupied by the value. Otherwise this is a lower bound.source§fn estimate_heap_size(&self) -> usize
fn estimate_heap_size(&self) -> usize
Estimates the size of heap memory taken up by this value. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnwindSafe for Op
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