Class: Origami::Destination
- Defined in:
- lib/origami/destinations.rb
Overview
A destination represents a specified location into the document.
Direct Known Subclasses
GlobalBoundingBoxFit, GlobalFit, HorizontalBoudingBoxFit, HorizontalFit, RectangleFit, VerticalBoundingBoxFit, VerticalFit, Zoom
Defined Under Namespace
Classes: GlobalBoundingBoxFit, GlobalFit, HorizontalBoudingBoxFit, HorizontalFit, RectangleFit, VerticalBoundingBoxFit, VerticalFit, Zoom
Constant Summary
Constants inherited from Array
Constants included from Object
Instance Attribute Summary collapse
-
#bottom ⇒ Object
readonly
Returns the value of attribute bottom.
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#page ⇒ Object
readonly
Returns the value of attribute page.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
-
#top ⇒ Object
readonly
Returns the value of attribute top.
-
#zoom ⇒ Object
readonly
Returns the value of attribute zoom.
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
- .GlobalBoundingBoxFit(page) ⇒ Object
- .GlobalFit(page) ⇒ Object
- .HorizontalBoudingBoxFit(page, top: 0) ⇒ Object
- .HorizontalFit(page, top: 0) ⇒ Object
- .RectangleFit(page, left: 0, bottom: 0, right: 0, top: 0) ⇒ Object
- .VerticalBoundingBoxFit(page, left: 0) ⇒ Object
- .VerticalFit(page, left: 0) ⇒ Object
- .Zoom(page, left: 0, top: 0, zoom: 0) ⇒ Object
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
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
#bottom ⇒ Object (readonly)
Returns the value of attribute bottom.
43 44 45 |
# File 'lib/origami/destinations.rb', line 43 def bottom @bottom end |
#left ⇒ Object (readonly)
Returns the value of attribute left.
43 44 45 |
# File 'lib/origami/destinations.rb', line 43 def left @left end |
#page ⇒ Object (readonly)
Returns the value of attribute page.
43 44 45 |
# File 'lib/origami/destinations.rb', line 43 def page @page end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
43 44 45 |
# File 'lib/origami/destinations.rb', line 43 def right @right end |
#top ⇒ Object (readonly)
Returns the value of attribute top.
43 44 45 |
# File 'lib/origami/destinations.rb', line 43 def top @top end |
#zoom ⇒ Object (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 |