Method: PDFGen::Caption#render
- Defined in:
- lib/caption.rb
#render(pos, av_height, test = false) ⇒ Object
renders specified text at the specified position returns real position that caption was generated on
63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/caption.rb', line 63 def render(pos, av_height, test=false) self.check_fit_in_height if av_height >= self.height super add_text_wrap(pos,test) used_height = [add_text_wrap(pos),self.height].max [used_height, true] else [0, false] end end |