pub struct GraphicsSnapshot {Show 13 fields
pub ctm: [f64; 6],
pub fill_color: [f64; 3],
pub stroke_color: [f64; 3],
pub font_name: String,
pub font_size: f64,
pub text_matrix: [f64; 6],
pub text_line_matrix: [f64; 6],
pub char_spacing: f64,
pub word_spacing: f64,
pub horiz_scaling: f64,
pub leading: f64,
pub text_rise: f64,
pub in_text_object: bool,
}Expand description
Snapshot of graphics + text state at a point in the content stream.
Fields§
§ctm: [f64; 6]Current transformation matrix [a, b, c, d, e, f].
fill_color: [f64; 3]Fill color (RGB).
stroke_color: [f64; 3]Stroke color (RGB).
font_name: StringCurrent font name (from Tf operator).
font_size: f64Current font size (from Tf operator).
text_matrix: [f64; 6]Text matrix [a, b, c, d, e, f].
text_line_matrix: [f64; 6]Text line matrix [a, b, c, d, e, f].
char_spacing: f64Character spacing (Tc).
word_spacing: f64Word spacing (Tw).
horiz_scaling: f64Horizontal scaling (Tz), percentage.
leading: f64Text leading (TL).
text_rise: f64Text rise (Ts).
in_text_object: boolWhether we are inside a BT..ET block.
Trait Implementations§
Source§impl Clone for GraphicsSnapshot
impl Clone for GraphicsSnapshot
Source§impl Debug for GraphicsSnapshot
impl Debug for GraphicsSnapshot
Auto Trait Implementations§
impl Freeze for GraphicsSnapshot
impl RefUnwindSafe for GraphicsSnapshot
impl Send for GraphicsSnapshot
impl Sync for GraphicsSnapshot
impl Unpin for GraphicsSnapshot
impl UnsafeUnpin for GraphicsSnapshot
impl UnwindSafe for GraphicsSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.