Sha256: 618d83c0f793f2bb7eaa73b57ba29e69b0d8d4a29dd25f0a55071ff491ef7d5d
Contents?: true
Size: 478 Bytes
Versions: 6
Compression:
Stored size: 478 Bytes
Contents
module Asciidoctor::Pdf::FormattedText module InlineDestinationMarker module_function # render_behind is called before the text is printed def render_behind fragment unless (pdf = fragment.document).scratch? if (name = fragment.format_state[:name]) # get precise position of the reference (x, y) dest_rect = fragment.absolute_bounding_box pdf.add_dest name, (pdf.dest_xyz dest_rect.first, dest_rect.last) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems