How to create a link for the text in the PDF?
As a starting point you may want to take a look at Annotation sample
// In C# ...
Page dest_page = doc.PageFind(3).Current();
Action goto_action =
Annot link = Annot.CreateLink(doc, new Rect(85, 458, 503, 502),
This code assumes that you know the location (i.e. Rect) where the
hyperlink annotation should be placed. You could use TextExtractor
class or ElementReader->Element->GetBBox (similar to TextExtract
sample project) in order to obtain the bounding box for each text run
or word on the page.