We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

HighlightAnnotation support clicks opening browser with url?

is this possible? if so, how?


The HighlightAnnotation has a property i.e. Hyperlink. We tried to use it with code snippet as the below but it did not work:

Document document = new Document();
// Create link
Page page = document.Pages[1];
page.Paragraphs.Add(new TextFragment("Sample"));
TextFragmentAbsorber absorber = new TextFragmentAbsorber("Sample");

HighlightAnnotation annot = new HighlightAnnotation(page, absorber.TextFragments[1].Rectangle);
annot.Hyperlink = new WebHyperlink("https://google.com");
annot.Color = Color.Beige;


We are collecting related information against this behavior of the API and will get back to you shortly.


We have logged an issue as PDFNET-51018 in our issue tracking system to further investigate why the required property of the HighlightAnnotation Class is not working. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.