pub struct Destination<'a> { /* private fields */ }
Expand description
Writer for a destination array.
A dictionary mapping to this struct is created by
Chunk::destinations
. This struct is also created by
Action::destination
.
Implementations§
source§impl<'a> Destination<'a>
impl<'a> Destination<'a>
sourcepub fn xyz(self, left: f32, top: f32, zoom: Option<f32>)
pub fn xyz(self, left: f32, top: f32, zoom: Option<f32>)
Write the /XYZ
command which skips to the specified coordinated.
sourcepub fn fit_horizontal(self, top: f32)
pub fn fit_horizontal(self, top: f32)
Write the /FitH
command which fits the referenced page to the screen
width and skips to the specified offset.
sourcepub fn fit_vertical(self, left: f32)
pub fn fit_vertical(self, left: f32)
Write the /FitV
command which fits the referenced page to the screen
height and skips to the specified offset.
sourcepub fn fit_rect(self, rect: Rect)
pub fn fit_rect(self, rect: Rect)
Write the /FitR
command which fits the rectangle argument on the
screen.
sourcepub fn fit_bounding_box(self)
pub fn fit_bounding_box(self)
Write the /FitB
command which fits all of the referenced page’s
content on screen. PDF 1.1+.
sourcepub fn fit_bounding_box_horizontal(self, top: f32)
pub fn fit_bounding_box_horizontal(self, top: f32)
Write the /FitBH
command which fits the referenced page’s content to
the screen width and skips to the specified offset. PDF 1.1+.
sourcepub fn fit_bounding_box_vertical(self, left: f32)
pub fn fit_bounding_box_vertical(self, left: f32)
Write the /FitBV
command which fits the referenced page’s content to
the screen height and skips to the specified offset. PDF 1.1+.
Methods from Deref<Target = Array<'a>>§
sourcepub fn item<T: Primitive>(&mut self, value: T) -> &mut Self
pub fn item<T: Primitive>(&mut self, value: T) -> &mut Self
Write an item with a primitive value.
This is a shorthand for array.push().primitive(value)
.
sourcepub fn items<T: Primitive>(
&mut self,
values: impl IntoIterator<Item = T>,
) -> &mut Self
pub fn items<T: Primitive>( &mut self, values: impl IntoIterator<Item = T>, ) -> &mut Self
Write a sequence of items with primitive values.