Text Highlighting in PDF

Dear Support Team,


I am facing a issue in highlighting the text in PDF file.
I am using “segment.TextState.BackgroundColor” to highlight the text.

I am trying to search “Abstimmungsmethoden” in the pdf text. It founds at two locations.
At the first location highlighting is not proper while on the second location highlighting is correct.I have attached the images for the same.

I have also attached my PDF file.

Following Regular Expression is used to search the text.

(?i)\bAbstimmungsmethoden\b

Kindly look into the issue.







Hi RaviKant,

Thanks for your inquiry. While testing the scenario with your shared document, we have managed to reproduce the issue with latest version of Aspose.Pdf for .NET 9.8.0. We have logged a ticket PDFNEWNET-37841 in our issue tracking system for further investigation and resolution. We will notify you as soon as it is resolved.

We are sorry for the inconvenience caused.

Best Regards,