Method: RBPDF#AddLink

Defined in:
lib/rbpdf.rb

Creates a new internal link and returns its identifier. An internal link is a clickable area which directs to another place within the document. The identifier can then be passed to Cell(), Write(), Image() or Link(). The destination is defined with SetLink().

@access public
@since 1.5
@see

Cell(), Write(), Image(), Link(), SetLink()



2992
2993
2994
2995
2996
2997
# File 'lib/rbpdf.rb', line 2992

def AddLink()
  #Create a new internal link
  n = @links.length + 1
  @links[n]=[0,0];
  return n;
end