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

Free Support Forum - aspose.com

Highlight issue

Hi,
I have issues trying to highlight my pdf with html text inside with the following regular expression:
\b(?i)h-farm\b

the “h-farm” keyword has not been highlitghted.
Why?

@Ciccio69

Thank you for contacting support.

You may search the text in a PDF document with different approaches using Aspose.PDF for .NET API as explained in Search and Get Text from Pages of a PDF Document and then you can highlight it as per your requirements. For validity of your different regular expressions, you may try any online RegEx tester utility.

In case you still face any problem, then please share narrowed down code snippet along with source PDF document so that we may try to reproduce and investigate it in our environment.