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

Free Support Forum - aspose.com

Highlight Sentence in a PDF Document


I am trying to highlight a particular Sentence in a document, but when I do this, words in the same line as well as the same word in other lines are also highlighting, Is there any solution to avoid this?

Here I am attaching a sample document, Sample Document.pdf (168.3 KB)
In this, when I try to highlight the Sentence
“State the thesis or main point in your first few sentences so
your professor will see this part of the answer right away. Use
clear statements that directly answer the question.” this sentence and anther line with common words are also highlighting, I want this to avoid and highlight only the sentence I have given .


Could you please share the sample code snippet that you are using to highlight the PDF text? We will test the scenario in our environment and address it accordingly.