[] (PDF::TechBook::TagXref)

         # File lib/pdf/techbook.rb, line 249
    249:     def self.[](pdf, params)
    250:       name  = params["name"]
    251:       item  = params["label"]
    252:       text  = params["text"]
    253:
    254:       xref = pdf.xref_table[name]
    255:       if xref
    256:         case item
    257:         when 'page'
    258:           label = xref[:page]
    259:           if text.nil? or text.empty?
    260:             label ||= xref[:title]
    261:           else
    262:             label ||= text
    263:           end
    264:         when 'title'
    265:           label = xref[:title]
    266:         when 'text'
    267:           label = text
    268:         end
    269:
    270:         "<c:ilink dest='#{xref[:xref]}'>#{label}</c:ilink>"
    271:       else
    272:         warn PDF::Writer::Lang[:techbook_unknown_xref] % [ name ]
    273:         PDF::Writer::Lang[:techbook_unknown_xref] % [ name ]
    274:       end
    275:     end