pub struct PdfPage { /* private fields */ }Implementations§
Source§impl PdfPage
impl PdfPage
pub fn new() -> Result<Self>
pub fn label(&self) -> Option<String>
pub fn string(&self) -> Option<String>
pub fn number_of_characters(&self) -> usize
pub fn rotation(&self) -> i32
pub fn set_rotation(&self, rotation: i32) -> Result<()>
pub fn bounds(&self, display_box: DisplayBox) -> PdfRect
pub fn set_bounds(&self, display_box: DisplayBox, bounds: PdfRect) -> Result<()>
pub fn document(&self) -> Option<PdfDocument>
pub fn annotation_count(&self) -> usize
pub fn annotation(&self, index: usize) -> Option<PdfAnnotation>
pub fn annotations(&self) -> Vec<PdfAnnotation>
pub fn add_annotation(&self, annotation: &PdfAnnotation) -> Result<()>
pub fn remove_annotation(&self, annotation: &PdfAnnotation) -> Result<()>
pub fn annotation_at_point(&self, point: PdfPoint) -> Option<PdfAnnotation>
pub fn selection_for_range( &self, location: usize, length: usize, ) -> Option<PdfSelection>
pub fn selection_for_rect(&self, rect: PdfRect) -> Option<PdfSelection>
pub fn selection_for_word_at_point( &self, point: PdfPoint, ) -> Option<PdfSelection>
pub fn selection_for_line_at_point( &self, point: PdfPoint, ) -> Option<PdfSelection>
pub fn selection_from_points( &self, start: PdfPoint, end: PdfPoint, ) -> Option<PdfSelection>
pub fn character_bounds_at(&self, index: usize) -> PdfRect
pub fn character_index_at_point(&self, point: PdfPoint) -> Option<usize>
pub fn displays_annotations(&self) -> bool
pub fn set_displays_annotations(&self, value: bool)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PdfPage
impl RefUnwindSafe for PdfPage
impl !Send for PdfPage
impl !Sync for PdfPage
impl Unpin for PdfPage
impl UnsafeUnpin for PdfPage
impl UnwindSafe for PdfPage
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