pub struct PdfPage { /* private fields */ }Expand description
Single parsed page of a Portable Document Format (PDF) document.
Implementations§
Source§impl PdfPage
Optional preview helper for PdfPage.
impl PdfPage
Optional preview helper for PdfPage.
Sourcepub fn preview_image(&self) -> Option<ImageBuffer>
pub fn preview_image(&self) -> Option<ImageBuffer>
Source§impl PdfPage
impl PdfPage
pub fn get_page_number(&self) -> usize
pub fn get_mut_page_number(&mut self) -> &mut usize
pub fn set_page_number(&mut self, val: usize) -> &mut Self
pub fn get_width_pt(&self) -> f32
pub fn get_mut_width_pt(&mut self) -> &mut f32
pub fn set_width_pt(&mut self, val: f32) -> &mut Self
pub fn get_height_pt(&self) -> f32
pub fn get_mut_height_pt(&mut self) -> &mut f32
pub fn set_height_pt(&mut self, val: f32) -> &mut Self
pub fn get_title(&self) -> &String
pub fn get_mut_title(&mut self) -> &mut String
pub fn set_title(&mut self, val: String) -> &mut Self
pub fn get_text_blocks(&self) -> &Vec<String>
pub fn get_mut_text_blocks(&mut self) -> &mut Vec<String>
pub fn set_text_blocks(&mut self, val: Vec<String>) -> &mut Self
pub fn get_mut_preview_image(&mut self) -> &mut Option<ImageBuffer>
pub fn set_preview_image(&mut self, val: Option<ImageBuffer>) -> &mut Self
Trait Implementations§
impl StructuralPartialEq for PdfPage
Auto Trait Implementations§
impl Forget for PdfPage
impl Freeze for PdfPagewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const ArcInner<[u8]> is !null: Freeze,
PhantomData<ArcInner<[u8]>>: Freeze,
impl Move for PdfPage
impl RefUnwindSafe for PdfPage
impl Send for PdfPage
impl Sync for PdfPage
impl Unpin for PdfPage
impl UnsafeUnpin for PdfPagewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ArcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u8]>>: UnsafeUnpin,
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