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

Free Support Forum - groupdocs.com

Viewer issue - Highlighted texts with Adobe Acrobat PDF not highlighted

Hello,

I have a problem with GroupDocs.Viewer.
Having highlighted words in a document with Acrobat (or Microsoft Edge), on the GroupDocs.Viewer preview the words are not highlighted.
How can I solve this problem?

Attached is a simple document with the problem to show you the nature of the problem.

Thanks a lot !

example.pdf (35.7 KB)

@hdutQuest

Are you using our on-premises API (.NET or Java) or the free web app?

My project is in .NET and I’m using the GroupDocs.Viewer API

@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?

Thank you very much, indeed this part of the code was missing for it to work (it was an older version):
viewOptions.RenderComments = true;

Now everything is ok.

Have a great day !

@hdutQuest

Thank you for the feedback!

Have a nice day!