pub enum PdfDestinationViewSettings {
Unknown,
SpecificCoordinatesAndZoom(Option<PdfPoints>, Option<PdfPoints>, Option<f32>),
FitPageToWindow,
FitPageHorizontallyToWindow(Option<PdfPoints>),
FitPageVerticallyToWindow(Option<PdfPoints>),
FitPageToRectangle(PdfRect),
FitBoundsToWindow,
FitBoundsHorizontallyToWindow(Option<PdfPoints>),
FitBoundsVerticallyToWindow(Option<PdfPoints>),
}Expand description
The view settings that a PDF viewer should apply when displaying the target PdfPage nominated by a PdfDestination in its display window.
Variants§
Unknown
The view settings are unknown.
SpecificCoordinatesAndZoom(Option<PdfPoints>, Option<PdfPoints>, Option<f32>)
Display the target PdfPage with the given (x, y) coordinates positioned at the
upper-left corner of the window and the contents of the page magnified by the given
zoom factor. A missing value for any of the parameters indicates that the current value
of that parameter is to be retained unchanged.
FitPageToWindow
Display the target PdfPage with its contents magnified just enough
to fit the entire page within the window both horizontally and vertically. If
the required horizontal and vertical magnification factors are different, use
the smaller of the two, centering the page within the window in the other
dimension.
FitPageHorizontallyToWindow(Option<PdfPoints>)
Display the target PdfPage with the given y coordinate positioned at the top edge of
the window and the contents of the page magnified just enough to fit the entire width
of the page within the window. A missing value for the y coordinate indicates
that the current value of that parameter is to be retained unchanged.
FitPageVerticallyToWindow(Option<PdfPoints>)
Display the target PdfPage with the given x coordinate positioned at the left edge of
the window and the contents of the page magnified just enough to fit the entire height
of the page within the window. A missing value for the x coordinate indicates
that the current value of that parameter is to be retained unchanged.
FitPageToRectangle(PdfRect)
Display the target PdfPage with its contents magnified just enough to fit the
given rectangle entirely within the window both horizontally and vertically.
If the required horizontal and vertical magnification factors are different, then use
the smaller of the two, centering the rectangle within the window in the other dimension.
FitBoundsToWindow
Display the target PdfPage with its contents magnified just enough to fit its bounding box
entirely within the window both horizontally and vertically. If the required horizontal and
vertical magnification factors are different, then use the smaller of the two,
centering the bounding box within the window in the other dimension.
This variant was added in PDF version 1.1.
FitBoundsHorizontallyToWindow(Option<PdfPoints>)
Display the target PdfPage with the given y coordinate positioned at the top edge of
the window and the contents of the page magnified just enough to fit the entire width
of its bounding box within the window. A missing value for the y coordinate indicates
that the current value of that parameter is to be retained unchanged.
This variant was added in PDF version 1.1.
FitBoundsVerticallyToWindow(Option<PdfPoints>)
Display the target PdfPage with the given x coordinate positioned at the left edge of
the window and the contents of the page magnified just enough to fit the entire height
of its bounding box within the window. A missing value for the x coordinate indicates
that the current value of that parameter is to be retained unchanged.
This variant was added in PDF version 1.1.
Trait Implementations§
Source§impl Clone for PdfDestinationViewSettings
impl Clone for PdfDestinationViewSettings
Source§fn clone(&self) -> PdfDestinationViewSettings
fn clone(&self) -> PdfDestinationViewSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PdfDestinationViewSettings
impl Debug for PdfDestinationViewSettings
impl Copy for PdfDestinationViewSettings
Auto Trait Implementations§
impl Freeze for PdfDestinationViewSettings
impl RefUnwindSafe for PdfDestinationViewSettings
impl Send for PdfDestinationViewSettings
impl Sync for PdfDestinationViewSettings
impl Unpin for PdfDestinationViewSettings
impl UnwindSafe for PdfDestinationViewSettings
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