Free Support Forum - aspose.com

Links

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  
     '-----------------------------------------------------------  
     myeditor.BindPdf(myFile.LocalCopyPath)  
     myannoteditor.BindPdf(myFile.LocalCopyPath)  
 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)  
   myAnnotations.Add(myAnnot)  
   'linkAnnot = arrayLinks(I)  
   'arrayActions = linkAnnot.GetActions(PDFActionType.RGoto)  
 Next  


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

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.
Regards,

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.
Regards,