Class: Origami::Destination

Inherits:
Array
  • Object
show all
Defined in:
lib/origami/destinations.rb

Overview

A destination represents a specified location into the document.

Defined Under Namespace

Classes: GlobalBoundingBoxFit, GlobalFit, HorizontalBoudingBoxFit, HorizontalFit, RectangleFit, VerticalBoundingBoxFit, VerticalFit, Zoom

Constant Summary

Constants inherited from Array

Array::TOKENS

Constants included from Object

Object::TOKENS

Instance Attribute Summary collapse

Attributes inherited from Array

#names_cache, #strings_cache, #xref_cache

Attributes included from Object

#file_offset, #generation, #no, #objstm_offset, #parent

Class Method Summary collapse

Methods inherited from Array

#+, #<<, #[]=, #cast_to, #concat, #copy, #initialize, of, parse, #pre_build, #to_a, #to_obfuscated_str, #to_s

Methods included from Object

#<=>, #cast_to, #copy, #document, #export, included, #indirect?, #indirect_parent, #initialize, #logicalize, #logicalize!, #native_type, parse, #post_build, #pre_build, #reference, #set_document, #set_indirect, skip_until_next_obj, #solve, #to_o, #to_s, #type, typeof, #version_required, #xrefs

Constructor Details

This class inherits a constructor from Origami::Array

Instance Attribute Details

#bottomObject (readonly)

Returns the value of attribute bottom


43
44
45
# File 'lib/origami/destinations.rb', line 43

def bottom
  @bottom
end

#leftObject (readonly)

Returns the value of attribute left


43
44
45
# File 'lib/origami/destinations.rb', line 43

def left
  @left
end

#pageObject (readonly)

Returns the value of attribute page


43
44
45
# File 'lib/origami/destinations.rb', line 43

def page
  @page
end

#rightObject (readonly)

Returns the value of attribute right


43
44
45
# File 'lib/origami/destinations.rb', line 43

def right
  @right
end

#topObject (readonly)

Returns the value of attribute top


43
44
45
# File 'lib/origami/destinations.rb', line 43

def top
  @top
end

#zoomObject (readonly)

Returns the value of attribute zoom


43
44
45
# File 'lib/origami/destinations.rb', line 43

def zoom
  @zoom
end

Class Method Details

.GlobalBoundingBoxFit(page) ⇒ Object


188
189
190
# File 'lib/origami/destinations.rb', line 188

def self.GlobalBoundingBoxFit(page)
    GlobalBoundingBoxFit[page]
end

.GlobalFit(page) ⇒ Object


92
93
94
# File 'lib/origami/destinations.rb', line 92

def self.GlobalFit(page)
    GlobalFit[page]
end

.HorizontalBoudingBoxFit(page, top: 0) ⇒ Object


213
214
215
# File 'lib/origami/destinations.rb', line 213

def self.HorizontalBoudingBoxFit(page, top: 0)
    HorizontalBoudingBoxFit[page, top: top]
end

.HorizontalFit(page, top: 0) ⇒ Object


117
118
119
# File 'lib/origami/destinations.rb', line 117

def self.HorizontalFit(page, top: 0)
    HorizontalFit[page, top: top]
end

.RectangleFit(page, left: 0, bottom: 0, right: 0, top: 0) ⇒ Object


164
165
166
# File 'lib/origami/destinations.rb', line 164

def self.RectangleFit(page, left: 0, bottom: 0, right: 0, top: 0)
    RectangleFit[page, left: left, bottom: bottom, right: right, top: top]
end

.VerticalBoundingBoxFit(page, left: 0) ⇒ Object


238
239
240
# File 'lib/origami/destinations.rb', line 238

def self.VerticalBoundingBoxFit(page, left: 0)
    VerticalBoundingBoxFit[page, left: left]
end

.VerticalFit(page, left: 0) ⇒ Object


139
140
141
# File 'lib/origami/destinations.rb', line 139

def self.VerticalFit(page, left: 0)
    VerticalFit[page, left: left]
end

.Zoom(page, left: 0, top: 0, zoom: 0) ⇒ Object


67
68
69
# File 'lib/origami/destinations.rb', line 67

def self.Zoom(page, left: 0, top: 0, zoom: 0)
    Zoom[page, left: left, top: top, zoom: zoom]
end