I want to add bold content in highlight annotaion, Please refer the code below and refer img,
HighlightAnnotation ha1 = new HighlightAnnotation(page, AdjustToolTip ? new Rectangle(textFragment.Segments[1].Rectangle.LLX + extraVal, textFragment.Segments[1].Rectangle.LLY, textFragment.Segments[1].Rectangle.URX + extraVal, textFragment.Segments[1].Rectangle.URY) : textFragment.Segments[1].Rectangle);
ha1.Color = color;
ha1.Modified = DateTime.Now;
ha1.Contents = "Highlighted **<strong>bold</strong>** text";
ha1.Flags = AnnotationFlags.ToggleNoView;
return ha1;
Capture.PNG (107.1 KB)