pub struct TextItem {Show 16 fields
pub str: String,
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
pub w: f64,
pub h: f64,
pub font_name: Option<String>,
pub font_size: Option<f64>,
pub r: Option<i32>,
pub rx: Option<f64>,
pub ry: Option<f64>,
pub markup: Option<MarkupData>,
pub vgap: Option<bool>,
pub is_placeholder: Option<bool>,
pub confidence: Option<f64>,
}Expand description
An individual text element extracted from a page.
Matches TextItem in [liteparse/src/core/types.ts]. Coordinates use PDF
points, top-left origin, y increasing downward.
Fields§
§str: String§x: f64§y: f64§width: f64§height: f64§w: f64§h: f64§font_name: Option<String>§font_size: Option<f64>§r: Option<i32>§rx: Option<f64>§ry: Option<f64>§markup: Option<MarkupData>§vgap: Option<bool>§is_placeholder: Option<bool>§confidence: Option<f64>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextItem
impl<'de> Deserialize<'de> for TextItem
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TextItem
impl RefUnwindSafe for TextItem
impl Send for TextItem
impl Sync for TextItem
impl Unpin for TextItem
impl UnsafeUnpin for TextItem
impl UnwindSafe for TextItem
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