Class: Pdfrb::Destination::FitBoundingBoxHorizontal
- Defined in:
- lib/pdfrb/destination/fit.rb
Overview
/FitBH top — fit bounding box width, top at top.
Instance Attribute Summary collapse
-
#top ⇒ Object
readonly
Returns the value of attribute top.
Attributes inherited from Fit
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(page_ref, top: nil) ⇒ FitBoundingBoxHorizontal
constructor
A new instance of FitBoundingBoxHorizontal.
- #to_pdf ⇒ Object
Methods inherited from Fit
[], register, register_as, registry, types
Constructor Details
#initialize(page_ref, top: nil) ⇒ FitBoundingBoxHorizontal
Returns a new instance of FitBoundingBoxHorizontal.
151 152 153 154 |
# File 'lib/pdfrb/destination/fit.rb', line 151 def initialize(page_ref, top: nil) super(page_ref) @top = top end |
Instance Attribute Details
#top ⇒ Object (readonly)
Returns the value of attribute top.
149 150 151 |
# File 'lib/pdfrb/destination/fit.rb', line 149 def top @top end |
Class Method Details
.fit_keyword ⇒ Object
157 |
# File 'lib/pdfrb/destination/fit.rb', line 157 def fit_keyword; :FitBH; end |