pub struct Page<'a> { /* private fields */ }Expand description
A PDF page.
Implementations§
Source§impl<'a> Page<'a>
impl<'a> Page<'a>
Sourcepub fn page_stream(&self) -> Option<&[u8]>
pub fn page_stream(&self) -> Option<&[u8]>
Return the decoded content stream of the page.
Sourcepub fn intersected_crop_box(&self) -> Rect
pub fn intersected_crop_box(&self) -> Rect
Return the intersection of crop box and media box.
Sourcepub fn base_dimensions(&self) -> (f32, f32)
pub fn base_dimensions(&self) -> (f32, f32)
Return the base dimensions of the page (same as intersected_crop_box, but with special
handling applied for zero-area pages).
Sourcepub fn render_dimensions(&self) -> (f32, f32)
pub fn render_dimensions(&self) -> (f32, f32)
Return the with and height of the page that should be assumed when rendering the page.
Depending on the document, it is either based on the media box or the crop box of the page. In addition to that, it also takes the rotation of the page into account.
Sourcepub fn operations(&self) -> UntypedIter<'_> ⓘ
pub fn operations(&self) -> UntypedIter<'_> ⓘ
Return an untyped iterator over the operators of the page’s content stream.
Sourcepub fn typed_operations(&self) -> TypedIter<'_> ⓘ
pub fn typed_operations(&self) -> TypedIter<'_> ⓘ
Return a typed iterator over the operators of the page’s content stream.
Auto Trait Implementations§
impl<'a> !Freeze for Page<'a>
impl<'a> !RefUnwindSafe for Page<'a>
impl<'a> Send for Page<'a>
impl<'a> Sync for Page<'a>
impl<'a> Unpin for Page<'a>
impl<'a> !UnwindSafe for Page<'a>
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