Document document = new Document("c:/pdftest/TempFile.pdf"); // Traverse through all the page of PDF foreach (Aspose.Pdf.Page page in document.Pages) { // Get the link annotations from particular page AnnotationSelector selector = new AnnotationSelector(new Aspose.Pdf.InteractiveFeatures.Annotations.LinkAnnotation(page, Aspose.Pdf.Rectangle.Trivial));page.Accept(selector); <span class="code-comment" style="color: rgb(128, 128, 128); background-color: inherit;">// Create list holding all the links
IList list = selector.Selected;
// Iterate through invidiaul item inside list
foreach (LinkAnnotation a in list)
{
// Print the destination URL
Console.WriteLine("
Destination: " + (a.Action as Aspose.Pdf.InteractiveFeatures.GoToURIAction).URI + “
”);
}
}
Thanks in advance !