Annotation library does not highlight the text
Use the code example below with any word document to reproduce this issue.
using (Annotator annotator = new Annotator("input.docx"))
{
HighlightAnnotation highlight = new HighlightAnnotation
{
BackgroundColor = 65535,
CreatedOn = DateTime.Now,
FontColor = 0,
Message = "This is highlight annotation",
Opacity = 0.5,
PageNumber = 0,
Points = new List<Point>
{
new Point(80, 730), new Point(240, 730), new Point(80, 650), new Point(240, 650)
},
Replies = new List<Reply>
{
new Reply
{
Comment = "First comment",
RepliedOn = DateTime.Now
},
new Reply
{
Comment = "Second comment",
RepliedOn = DateTime.Now
}
}
};
annotator.Add(highlight);
annotator.Save("result.docx");
}