How to access link properties in pdf

Hi Team,

I need code to get and set the properties of pdf of links as highlighted in attached imageasposelinkproperties.PNG (260.7 KB)
i want to get all link appearance properties which are in the image.

its urgent requirement please give me solution ASAP.

Thanks and Regards,
Harish G.

@HarishGali

The link extraction and modification process depends upon how links are added in the PDF document. Can you please share your sample PDF document with us so that we can test the scenario in our environment and address it accordingly.

Hi Team,

Please find attachments for testing document.
There are links in first page. please try to give code for all link properties mentioned.

Thank you,
Harish G.bluetext.pdf (20.2 KB)

@HarishGali

We are checking it and will get back to you shortly.

eagerly waiting for your replay.

@HarishGali

The blue text in your PDF is added as link annotation. Following code snippet can be used to extract the properties of link annotations in the PDF:

Document pdfDocument = new Document(dataDir + "bluetext.pdf");
PageCollection pages = pdfDocument.Pages;
foreach (Page p in pages)
{
 foreach (Annotation annot in p.Annotations)
 {
  if (annot.AnnotationType == AnnotationType.Link)
  {
   LinkAnnotation a = (LinkAnnotation)annot;
   a.Highlighting = HighlightingMode.None;
   a.Border.Width = 3;
   a.Border.Style = BorderStyle.Dashed;
   a.Color = Color.Red;
  }
 }
}