pub struct Page {
pub index: usize,
pub media_box: Rect,
pub crop_box: Rect,
pub rotate: i32,
pub resources: Dict,
/* private fields */
}Expand description
A single page with inherited attributes already applied.
Defaults: media_box falls back to US Letter (612x792) when absent or
invalid, crop_box falls back to (and is intersected with) media_box,
and rotate is normalized to one of {0, 90, 180, 270}.
Fields§
§index: usize0-based page index.
media_box: Rect§crop_box: Rect§rotate: i32§resources: DictThe page’s (inherited) /Resources dictionary.
Implementations§
Source§impl Page
impl Page
Sourcepub fn object_ref(&self) -> Option<ObjRef>
pub fn object_ref(&self) -> Option<ObjRef>
The page’s indirect object reference, when the page came from an
indirect kid in the page tree (pages inlined directly into a /Kids
array have none).
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