pub struct PageOps;Expand description
Common page operations (rotation, duplicate, reorder, delete).
Implementations§
Source§impl PageOps
impl PageOps
Sourcepub fn rotate_page(
doc: &mut PDDocument,
page_index: usize,
degrees: i32,
) -> PdfResult<()>
pub fn rotate_page( doc: &mut PDDocument, page_index: usize, degrees: i32, ) -> PdfResult<()>
Rotates a page by 90, 180, or 270 degrees clockwise.
Sourcepub fn duplicate_page(doc: &mut PDDocument, page_index: usize) -> PdfResult<()>
pub fn duplicate_page(doc: &mut PDDocument, page_index: usize) -> PdfResult<()>
Duplicates a page at page_index and appends it to the end of the document.
Auto Trait Implementations§
impl Freeze for PageOps
impl RefUnwindSafe for PageOps
impl Send for PageOps
impl Sync for PageOps
impl Unpin for PageOps
impl UnsafeUnpin for PageOps
impl UnwindSafe for PageOps
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