Hi, I am trying to add multiple links to a pdf but having some trouble. First link works fine and works, subsequent links also work but are placed on top of each other. The code to create the links is in a function with paramater passed in. The problem is Result (see code below), even though being set to Nothing on each function call adds new FindText results to Result as an array and the Find.Position and Find.Size are pointing to element(0) only so x,y,h and w are all the same for each link. I cannot figure out how to point to the other elements in the array. Does anyone know how to get around this?
Thanks
Tom
Dim Result As PdfTextFind() = Nothing
Result = PDFDocument.Pages(LinkHome).FindText(LinkText.ToString).Finds()
For Each find As PdfTextFind In Result
find.ApplyHighLight()
'Get the coordinates of the text found
x = find.Position.X
y = find.Position.Y
h = find.Size.Height
w = find.Size.Width