Issue with HighlightingMode class in .net dll


LinkAnnotaion with Highlighting Property is not working. it’s Saved but when i open in Adope Acrobat X Pro, link is not getting added the properties with HighLight Style like (None,Invert,Outline,Inset)

Document document = new Document(@“D:\sample.pdf”);
// Create link
Page page = document.Pages[1];
// Create Link annotation object
LinkAnnotation link = new LinkAnnotation(page, new Aspose.Pdf.Rectangle(100,100,120,400));

        link.Highlighting = HighlightingMode.Invert;

        link.Color = Aspose.Pdf.Color.FromRgb(System.Drawing.Color.Red);
        // Create border object for LinkAnnotation
        Border border = new Border(link);

        border.Style =BorderStyle.Solid;
        // Set the border width value as 0
        border.Width = 2;
        // Set the border for LinkAnnotation
        link.Border = border;
        // Specify the link type as remote URI
        GoToAction goToAction = new GoToAction();
        goToAction.Destination = new XYZExplicitDestination(2,10,700,1);
        link.Action = goToAction;



Would you kindly share the sample PDF document that you are using in your code snippet. We will test the scenario in our environment and address it accordingly.


Thanks, For responding.
Here iam attached sample.pdf file, In this i created one link in First page, So it is not getting added with Invert Property,
Hope, i’ll get the answer

sample.pdf (7.9 MB)



Thanks for sharing sample PDF.

We were able to replicate the issue in our environment while using Aspose.PDF for .NET 19.9. It seems like API is not honoring Highlighting mode of the annotation and if we do not set the property of Highlighting, the Link Annotation show invert behavior by default on mouse click.

Hence, we have logged an issue as PDFNET-46962 in our issue tracking system for the sake of correction. We will further look into detail of the issue and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.


Thanks for responding,
No, If we don’t set the property it’s taking as by default Highlight Mode ‘None’ as property
Please sort out the issue, return back with code snippet,



We will surely look into details of the issue and will share our feedback with you as soon as we make some progress towards its resolution.


Hi, Please give me the solution faster,’
we are developing a app using some functionalities in this Aspose library,
we are at the dead line situation,
Please give the answer



The issue has recently been logged in our issue tracking system under free support model and has low priority. It is still pending for analysis and will be investigated/resolved on first come first serve basis. We will surely let you know as soon as we make some progress towards its resolution. We request you to be patient and spare us little time.

We are sorry for the inconvenience.