'AddHyperlink Example
Set TK = CreateObject("APToolkit.Object")
r = TK.OpenOutputFile("AddHyperlink.pdf") 'Set the font and color for our visible text strFontSize = 20 TK.SetFont "Helvetica", strFontSize, 0 TK.SetTextColor 0, 0, 255, 0, 0 'Get the width of the text so we know how wide to make the link strLinkText = "www.activePDF.com" strTextWidth = TK.GetTextWidth(strLinkText, 0) 'Print the text that will show for the link strLLX = 30 strLLY = 740 TK.PrintText strLLX, strLLY, strLinkText, 0
'Add the Hyperlink over the recently placed text strURL = "http://www.activepdf.com" TK.AddHyperlink 0, strLLX, strLLY, strLLX + strTextWidth, strLLY + strFontSize, strURL, 0 TK.CloseOutputFile
Set TK = Nothing