@hdutQuest
Thank you for attaching the sample file. I’ve tried to render it with the latest version of GroupDocs.Viewer 21.1.1 and found that the highlighted text was rendered correctly. The code that I was using:
using (Viewer viewer = new Viewer("example.pdf"))
{
ViewOptions viewOptions =
HtmlViewOptions.ForEmbeddedResources();
viewer.View(viewOptions);
}
In case you’re using a much older version you’ll probably need to enable rendering comments (annotations):
using (Viewer viewer = new Viewer("example.pdf"))
{
ViewOptions viewOptions =
HtmlViewOptions.ForEmbeddedResources();
viewOptions.RenderComments = true;
viewer.View(viewOptions);
}
I’m attaching the sample_app.zip (44.7 KB)
Can you please share which version of GroupDocs.Viewer you’re using and the sample code or a sample app to reproduce the issue?