pub struct Page { /* private fields */ }Expand description
Represents a single PDF page.
Implementations§
Source§impl Page
impl Page
Sourcepub fn width(&self) -> f64
pub fn width(&self) -> f64
Get the effective page width (accounting for rotation and crop box).
Sourcepub fn height(&self) -> f64
pub fn height(&self) -> f64
Get the effective page height (accounting for rotation and crop box).
Sourcepub fn num_annots(&self) -> usize
pub fn num_annots(&self) -> usize
Get the number of annotations on this page.
Sourcepub fn default_matrix(&self) -> Matrix2D
pub fn default_matrix(&self) -> Matrix2D
Get the default transformation matrix for this page.
Maps from default PDF coordinates (origin at bottom-left) to the page’s crop box, accounting for rotation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Page
impl RefUnwindSafe for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnsafeUnpin for Page
impl UnwindSafe for Page
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