Class: Pdfrb::Destination::XYZ
Overview
/XYZ left top zoom — explicit position and zoom.
Instance Attribute Summary collapse
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#top ⇒ Object
readonly
Returns the value of attribute top.
-
#zoom ⇒ Object
readonly
Returns the value of attribute zoom.
Attributes inherited from Fit
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(page_ref, left: nil, top: nil, zoom: nil) ⇒ XYZ
constructor
A new instance of XYZ.
- #to_pdf ⇒ Object
Methods inherited from Fit
[], register, register_as, registry, types
Constructor Details
#initialize(page_ref, left: nil, top: nil, zoom: nil) ⇒ XYZ
Returns a new instance of XYZ.
122 123 124 125 126 127 |
# File 'lib/pdfrb/destination/fit.rb', line 122 def initialize(page_ref, left: nil, top: nil, zoom: nil) super(page_ref) @left = left @top = top @zoom = zoom end |
Instance Attribute Details
#left ⇒ Object (readonly)
Returns the value of attribute left.
120 121 122 |
# File 'lib/pdfrb/destination/fit.rb', line 120 def left @left end |
#top ⇒ Object (readonly)
Returns the value of attribute top.
120 121 122 |
# File 'lib/pdfrb/destination/fit.rb', line 120 def top @top end |
#zoom ⇒ Object (readonly)
Returns the value of attribute zoom.
120 121 122 |
# File 'lib/pdfrb/destination/fit.rb', line 120 def zoom @zoom end |
Class Method Details
.fit_keyword ⇒ Object
130 |
# File 'lib/pdfrb/destination/fit.rb', line 130 def fit_keyword; :XYZ; end |