class Hpdf::Destination

Overview

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.

Included Modules

Defined in:

hpdf/destination.cr

Constructors

Instance Method Summary

Instance methods inherited from module Hpdf::Helper

bool(val : Bool) : Int32 bool, nilable_str(v : Pointer(UInt8)) : String | Nil nilable_str, real(val : Number) : LibHaru::Real real, uint(val : Number) : LibHaru::UInt uint, uint16(val : Number) : UInt16 uint16

Constructor Detail

def self.new(destination : LibHaru::Destination, doc : Doc) #

[View source]

Instance Method Detail

def fit! #

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


[View source]
def fit_b! #

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


[View source]
def fit_bh!(left : 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.

  • left the top coordinates of the page.

[View source]
def fit_bv!(top : 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 top position of the page to the value of the "top" parameter.

  • top the top coordinates of the page.

[View source]
def 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.

[View source]
def 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.

[View source]
def 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.

[View source]
def to_unsafe : LibHaru::Destination #

[View source]
def 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(%).

[View source]