pub struct Char {
pub text: String,
pub bbox: BBox,
pub fontname: String,
pub size: f64,
pub doctop: f64,
pub upright: bool,
pub direction: TextDirection,
pub stroking_color: Option<Color>,
pub non_stroking_color: Option<Color>,
pub ctm: [f64; 6],
pub char_code: u32,
}Expand description
A single character extracted from a PDF page.
Fields§
§text: StringThe text content of this character.
bbox: BBoxBounding box in top-left origin coordinates.
fontname: StringFont name.
size: f64Font size in points.
doctop: f64Distance from the top of the first page (accumulates across pages).
upright: boolWhether the character is upright (not rotated).
direction: TextDirectionText direction for this character.
stroking_color: Option<Color>Stroking (outline) color, if any.
non_stroking_color: Option<Color>Non-stroking (fill) color, if any.
ctm: [f64; 6]Current transformation matrix [a, b, c, d, e, f] at time of rendering.
char_code: u32Raw character code from the PDF content stream.
Trait Implementations§
impl StructuralPartialEq for Char
Auto Trait Implementations§
impl Freeze for Char
impl RefUnwindSafe for Char
impl Send for Char
impl Sync for Char
impl Unpin for Char
impl UnsafeUnpin for Char
impl UnwindSafe for Char
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