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 included from ObjectCache

#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

#+, #<<, #[]=, #concat, #initialize, #insert, of, parse, #pre_build, #push, #to_a, #to_obfuscated_str, #to_s

Methods included from CompoundObject

#copy, #delete, #include?, #update_values, #update_values!

Methods included from ObjectCache

#initialize, #rebuild_caches

Methods included from Object

#cast_to, #copy, #document, #export, included, #indirect?, #indirect_parent, #initialize, #logicalize, #logicalize!, #native_type, #numbered?, 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.



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

def bottom
  @bottom
end

#leftObject (readonly)

Returns the value of attribute left.



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

def left
  @left
end

#pageObject (readonly)

Returns the value of attribute page.



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

def page
  @page
end

#rightObject (readonly)

Returns the value of attribute right.



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

def right
  @right
end

#topObject (readonly)

Returns the value of attribute top.



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

def top
  @top
end

#zoomObject (readonly)

Returns the value of attribute zoom.



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

def zoom
  @zoom
end

Class Method Details

.GlobalBoundingBoxFit(page) ⇒ Object



180
181
182
# File 'lib/origami/destinations.rb', line 180

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

.GlobalFit(page) ⇒ Object



88
89
90
# File 'lib/origami/destinations.rb', line 88

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

.HorizontalBoudingBoxFit(page, top: 0) ⇒ Object



204
205
206
# File 'lib/origami/destinations.rb', line 204

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

.HorizontalFit(page, top: 0) ⇒ Object



112
113
114
# File 'lib/origami/destinations.rb', line 112

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

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



157
158
159
# File 'lib/origami/destinations.rb', line 157

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



228
229
230
# File 'lib/origami/destinations.rb', line 228

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

.VerticalFit(page, left: 0) ⇒ Object



133
134
135
# File 'lib/origami/destinations.rb', line 133

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

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



65
66
67
# File 'lib/origami/destinations.rb', line 65

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