pub enum DestView {
Xyz {
left: Option<f32>,
top: Option<f32>,
zoom: Option<f32>,
},
Fit,
FitH {
top: Option<f32>,
},
FitV {
left: Option<f32>,
},
FitR {
left: f32,
bottom: f32,
right: f32,
top: f32,
},
FitB,
FitBH {
top: Option<f32>,
},
FitBV {
left: Option<f32>,
},
Unknown,
}Expand description
How a destination positions and zooms the target page (ISO 32000-1 Table
151). Coordinates are in the page’s default user space; None for a
coordinate means “retain the current value” (a null in the array).
Variants§
Xyz
/XYZ left top zoom — top-left at (left, top), at zoom (a zoom of 0
or null → None, meaning “retain current zoom”).
Fit
/Fit — fit the whole page in the window.
FitH
/FitH top — fit the page width, with top at the top of the window.
FitV
/FitV left — fit the page height, with left at the left edge.
FitR
/FitR left bottom right top — fit the given rectangle in the window.
FitB
/FitB — fit the page’s bounding box (the bbox of its content).
FitBH
/FitBH top — fit the bounding-box width.
FitBV
/FitBV left — fit the bounding-box height.
Unknown
An unrecognized or malformed view mode (the page is still resolved).