class

Hpdf::Destination

Inherits Hpdf::Helper / Reference / Object

The destination object specifies the view of the page to be displayed when the outline item or annotation is clicked. And the destination handle is used to operate destination object.

Constructors

new(destination : LibHaru::Destination, doc : Doc)
Source

Instance methods

fit!

sets the appearance of the page to displaying entire page within the window.

Source
fit_b!

sets the appearance of the page to magnifying to fit the bounding box of the page within the window.

Source
fit_bh!(top : Number)

defines the appearance of a page to magnifying to fit the width of the bounding box of the page within the window and setting the top position of the page to the value of the "top" parameter.

  • top the top coordinates of the page.
Source
fit_bv!(left : Number)

defines the appearance of a page to magnifying to fit the height of the bounding box of the page within the window and setting the left position of the page to the value of the "left" parameter.

  • left the left coordinates of the page.
Source
fit_h!(top : Number)

defines the appearance of a page to magnifying to fit the width of the page within the window and setting the top position of the page to the value of the "top" parameter.

  • top the top coordinates of the page.
Source
fit_r!(left : Number, bottom : Number, right : Number, top : Number)

defines the appearance of a page to magnifying the page to fit a rectangle specified by left, bottom, right and top.

  • left the left coordinates of the page.
  • bottom the bottom coordinates of the page.
  • right the right coordinates of the page.
  • top the top coordinates of the page.
Source
fit_v!(left : Number)

defines the appearance of a page to magnifying to fit the height of the page within the window and setting the left position of the page to the value of the "left" parameter.

  • left the left coordinates of the page.
Source
to_unsafe
Source
xyz!(left : Number, top : Number, zoom : Number)

defines the appearance of a page with three parameters which are left, top and zoom.

  • left the left coordinates of the page.
  • top the top coordinates of the page.
  • zoom the page magnified factor. The value must be between 0.08(8%) to 32(%).
Source