Class: Pdfrb::Destination::FitRectangle
- Defined in:
- lib/pdfrb/destination/fit.rb
Overview
/FitR left bottom right top — fit the specified rectangle.
Instance Attribute Summary collapse
-
#bottom ⇒ Object
readonly
Returns the value of attribute bottom.
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
-
#top ⇒ Object
readonly
Returns the value of attribute top.
Attributes inherited from Fit
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(page_ref, left:, bottom:, right:, top:) ⇒ FitRectangle
constructor
A new instance of FitRectangle.
- #to_pdf ⇒ Object
Methods inherited from Fit
[], register, register_as, registry, types
Constructor Details
#initialize(page_ref, left:, bottom:, right:, top:) ⇒ FitRectangle
Returns a new instance of FitRectangle.
100 101 102 103 104 105 106 |
# File 'lib/pdfrb/destination/fit.rb', line 100 def initialize(page_ref, left:, bottom:, right:, top:) super(page_ref) @left = left @bottom = bottom @right = right @top = top end |
Instance Attribute Details
#bottom ⇒ Object (readonly)
Returns the value of attribute bottom.
98 99 100 |
# File 'lib/pdfrb/destination/fit.rb', line 98 def bottom @bottom end |
#left ⇒ Object (readonly)
Returns the value of attribute left.
98 99 100 |
# File 'lib/pdfrb/destination/fit.rb', line 98 def left @left end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
98 99 100 |
# File 'lib/pdfrb/destination/fit.rb', line 98 def right @right end |
#top ⇒ Object (readonly)
Returns the value of attribute top.
98 99 100 |
# File 'lib/pdfrb/destination/fit.rb', line 98 def top @top end |
Class Method Details
.fit_keyword ⇒ Object
109 |
# File 'lib/pdfrb/destination/fit.rb', line 109 def fit_keyword; :FitR; end |