# File lib/pdf/writer.rb, line 2613
2613:     def self.[](pdf, info)
2614:       case info[:status]
2615:       when :start, :start_line
2616:         @links ||= {}
2617:         @links[info[:cbid]] = {
2618:           :x         => info[:x],
2619:           :y         => info[:y],
2620:           :angle     => info[:angle],
2621:           :descender => info[:descender],
2622:           :height    => info[:height],
2623:           :uri       => info[:params]["dest"]
2624:         }
2625:       when :end, :end_line
2626:           # The end of the link. Assume that it is the most recent opening
2627:           # which has closed.
2628:         start = @links[info[:cbid]]
2629:         pdf.add_internal_link(start[:uri], start[:x],
2630:                               start[:y] + start[:descender], info[:x],
2631:                               start[:y] + start[:descender] +
2632:                               start[:height])
2633:       end
2634:     end