Class: Prawn::Text::Formatted::Box
- Inherits:
-
Object
- Object
- Prawn::Text::Formatted::Box
- Defined in:
- lib/pdadv.rb
Instance Method Summary collapse
Instance Method Details
#draw_fragment_overlay_anchor(fragment) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/pdadv.rb', line 19 def (fragment) return unless fragment.anchor if /\A#\d+\z/.match?(fragment.anchor.to_s) i = fragment.anchor.sub('#', '').to_i box = fragment.absolute_bounding_box page = @document.state.pages[i] if page @document.link_annotation( box, Border: [0, 0, 0], Dest: @document.dest_xyz(0, 0, nil, page) ) end else (fragment) end end |
#upstream_draw_fragment_overlay_anchor ⇒ Object
18 |
# File 'lib/pdadv.rb', line 18 alias |