Struct pdfium_render::page_object_text::PdfPageTextObject
source · [−]pub struct PdfPageTextObject<'a> { /* private fields */ }Implementations
sourceimpl<'a> PdfPageTextObject<'a>
impl<'a> PdfPageTextObject<'a>
sourcepub fn text(&self) -> String
pub fn text(&self) -> String
Returns the text contained within this PdfPageTextObject.
sourcepub fn render_mode(&self) -> PdfPageTextRenderMode
pub fn render_mode(&self) -> PdfPageTextRenderMode
Returns the text rendering mode for the text contained within this PdfPageTextObject.
sourcepub fn set_render_mode(&mut self, render_mode: PdfPageTextRenderMode)
pub fn set_render_mode(&mut self, render_mode: PdfPageTextRenderMode)
Sets the text rendering mode for the text contained within this PdfPageTextObject.
sourcepub fn font_size(&self) -> PdfPoints
pub fn font_size(&self) -> PdfPoints
Returns the font size of the text contained within this PdfPageTextObject, expressed in PdfPoints.
sourcepub fn font(&self) -> PdfFont<'_>
pub fn font(&self) -> PdfFont<'_>
Returns the PdfFont used to render the text contained within this PdfPageTextObject.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for PdfPageTextObject<'a>
impl<'a> !Send for PdfPageTextObject<'a>
impl<'a> !Sync for PdfPageTextObject<'a>
impl<'a> Unpin for PdfPageTextObject<'a>
impl<'a> !UnwindSafe for PdfPageTextObject<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'a, T> PdfPageObjectCommon<'a> for T where
T: PdfPageObjectPrivate<'a>,
impl<'a, T> PdfPageObjectCommon<'a> for T where
T: PdfPageObjectPrivate<'a>,
sourcefn index(&self) -> PdfPageObjectIndex
fn index(&self) -> PdfPageObjectIndex
Returns the zero-based object index of this PdfPageObject in its containing PdfPage.
sourcefn has_transparency(&self) -> bool
fn has_transparency(&self) -> bool
Returns true if this PdfPageObject contains transparency.
sourcefn bounding(&self) -> Result<PdfRect, PdfiumError>
fn bounding(&self) -> Result<PdfRect, PdfiumError>
Returns the bounding box of this PdfPageObject.