Class: Origami::Destination::HorizontalFit
- Includes:
- Origami::Destination
- Defined in:
- lib/origami/destinations.rb
Overview
Class representing a Destination fitting a Page horizontally.
Constant Summary
Constants inherited from Array
Constants included from Object
Instance Attribute Summary
Attributes included from Origami::Destination
#bottom, #left, #right, #top, #zoom
Attributes inherited from Array
#names_cache, #strings_cache, #xref_cache
Attributes included from Object
#file_offset, #generation, #no, #objstm_offset, #parent
Instance Method Summary collapse
-
#initialize(pageref, top = 0) ⇒ HorizontalFit
constructor
Creates a new horizontal fit destination.
Methods inherited from Array
#+, #<<, #[]=, #copy, native_type, parse, #pre_build, #to_a, #to_obfuscated_str, #to_s
Methods included from Object
#<=>, #cast_to, #copy, #export, #indirect_parent, #is_indirect?, #logicalize, #logicalize!, native_type, #native_type, parse, #pdf, #pdf_version_required, #post_build, #pre_build, #reference, #resolve_all_references, #set_indirect, #set_pdf, #size, skip_until_next_obj, #solve, #to_o, #to_s, #type, typeof, #xrefs
Methods inherited from Array
Constructor Details
#initialize(pageref, top = 0) ⇒ HorizontalFit
Creates a new horizontal fit destination.
- pageref
-
A Reference to a Page.
- top
-
The vertical coord in the Page.
104 105 106 107 108 109 |
# File 'lib/origami/destinations.rb', line 104 def initialize(pageref, top = 0) @top = top super([pageref, :FitH, top]) end |