Sub Pdfium_LinkEvent(link As Map)
Log($"Pdfium_LinkEvent(${link})"$)
If link.ContainsKey("DestPageIdx") And link.Get("DestPageIdx") <> Null And link.Get("DestPageIdx") > -1 Then
Log($"Internal Link in PDF clicked: Jump To Page ${link.Get("DestPageIdx")}"$)
PDFView1.jumpTo(link.Get("DestPageIdx")) ' without this nothing will happen in the PDFView if the User clicks a internal link.
else if link.ContainsKey("Link") And link.Get("Link") <> "" Then
Log($"External Link in PDF clicked: ${link.Get("Link")}"$)
' You can open the URL in a Webview, download the link, whatever....
End If
End Sub