pub struct PageBoxes {
pub media_box: [f64; 4],
pub crop_box: Option<[f64; 4]>,
pub bleed_box: Option<[f64; 4]>,
pub trim_box: Option<[f64; 4]>,
pub art_box: Option<[f64; 4]>,
pub rotate: u16,
pub user_unit: f64,
pub duration: Option<f64>,
pub has_transition: bool,
pub has_additional_actions: bool,
}Expand description
Page geometry and presentation hints, drawn from the page dict
plus the inherited MediaBox/CropBox already resolved on
PageInfo.
All optional boxes (crop_box, bleed_box, trim_box,
art_box) default to MediaBox per spec when absent. We expose
them as Option<[f64; 4]> so callers can distinguish
“explicitly set” from “spec-default fallback” — Some means the
box was declared in the page dict (or inherited, for crop_box);
None means it was never declared and the consumer should use
media_box as the fallback.
Fields§
§media_box: [f64; 4]/MediaBox — required; defines the boundaries of the
physical medium.
crop_box: Option<[f64; 4]>/CropBox — visible area; None means not declared (use
media_box). Inherited from the page tree if present on a
parent.
bleed_box: Option<[f64; 4]>/BleedBox — bounds of the area within which page contents
may bleed when output in production.
trim_box: Option<[f64; 4]>/TrimBox — intended dimensions of the finished page after
trimming.
art_box: Option<[f64; 4]>/ArtBox — extent of the page’s meaningful content.
rotate: u16/Rotate — clockwise rotation in degrees (multiple of 90).
user_unit: f64/UserUnit — multiplier for default user-space units.
Default 1.0 per spec.
duration: Option<f64>/Dur — page display duration for presentation mode.
has_transition: bool/Trans — page-transition dict presence.
has_additional_actions: bool/AA — additional-actions dict presence.
Trait Implementations§
impl StructuralPartialEq for PageBoxes
Auto Trait Implementations§
impl Freeze for PageBoxes
impl RefUnwindSafe for PageBoxes
impl Send for PageBoxes
impl Sync for PageBoxes
impl Unpin for PageBoxes
impl UnsafeUnpin for PageBoxes
impl UnwindSafe for PageBoxes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more