pub struct PdfSelection { /* private fields */ }Implementations§
Source§impl PdfSelection
impl PdfSelection
pub fn new(document: &PdfDocument) -> Result<Self>
pub fn string(&self) -> Option<String>
pub fn page_count(&self) -> usize
pub fn page(&self, index: usize) -> Option<PdfPage>
pub fn pages(&self) -> Vec<PdfPage>
pub fn bounds_for_page(&self, page: &PdfPage) -> PdfRect
pub fn number_of_text_ranges_on_page(&self, page: &PdfPage) -> usize
pub fn text_range(&self, index: usize, page: &PdfPage) -> Option<PdfTextRange>
pub fn selection_by_line_count(&self) -> usize
pub fn selection_by_line(&self, index: usize) -> Option<Self>
pub fn selections_by_line(&self) -> Vec<Self>
pub fn add_selection(&self, other: &Self) -> Result<()>
pub fn extend_selection_at_end(&self, amount: isize)
pub fn extend_selection_at_start(&self, amount: isize)
pub fn extend_selection_for_line_boundaries(&self)
Trait Implementations§
Source§impl Clone for PdfSelection
impl Clone for PdfSelection
Source§fn clone(&self) -> PdfSelection
fn clone(&self) -> PdfSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PdfSelection
impl RefUnwindSafe for PdfSelection
impl !Send for PdfSelection
impl !Sync for PdfSelection
impl Unpin for PdfSelection
impl UnsafeUnpin for PdfSelection
impl UnwindSafe for PdfSelection
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