Free Support Forum -


I'm trying to query links in my document and have tried several methods to no avail. It is just not picking up the 4 links towards the bottom of my 4 page document. Here is the code I'm using

     'Check Links  
 Dim annotType As System.Enum() = {AnnotationType.Link}  
 Dim al As ArrayList = myannoteditor.ExtractAnnotations(1, pdfInfo.NumberofPages, annotType)  

 _TotalLinks = al.Count  
 For I As Integer = 0 To _TotalLinks - 1  

   Dim myAnnot As Aspose.Pdf.Kit.Annotation = al(I)  
   'linkAnnot = arrayLinks(I)  
   'arrayActions = linkAnnot.GetActions(PDFActionType.RGoto)  

 Dim allinks As ArrayList = myeditor.ExtractLink  
 For J As Integer = 0 To allinks.Count - 1  
   Dim newLink As New LinkInfo  
   newLink = allinks(J)  

Hi Brent,

We’re looking into this issue at our end and you’ll be updated with the results the earliest possible.

We’re sorry for the inconvenience.

Hi Brent,

I have tested this issue at my end using the latest merged version, and extracted the links successfully. I would recommend you to download the latest merged Aspose.Pdf at your end and try to test using the following code snippet: Extract Links from the PDF file. You may loop through all the pages to extract links from the whole PDF.

I hope this helps. If you still have any further questions, please do let us know.