Module Prawn::Document::Destinations
In: lib/prawn/document/destinations.rb

Methods

Public Instance methods

Adds a new destination to the dests name tree (see dests). The reference parameter will be converted into a Prawn::Reference if it is not already one.

Return a Dest specification that will fit the given page into the viewport.

Return a Dest specfication that will fit the given page’s bounding box into the viewport.

Same as dest_fit_horizontally, but works on the page’s bounding box instead of the entire page.

Same as dest_fit_vertically, but works on the page’s bounding box instead of the entire page.

Return a Dest specification that will fit the given page horizontally into the viewport, aligned vertically at the given top coordinate.

Return a Dest specification that will fit the given rectangle into the viewport, for the given page.

Return a Dest specification that will fit the given page vertically into the viewport, aligned horizontally at the given left coordinate.

Return a Dest specification for a specific location (and optional zoom level).

The Dests name tree in the Name dictionary (see Prawn::Document::Internal#names). This name tree is used to store named destinations (PDF spec 8.2.1). (For more on name trees, see section 3.8.4 in the PDF spec.)

[Validate]