Text selection highlight is broken up

Hi Johnny,

Here’s a url for an example document that has a similar issue:
https://mark-pdftron-example.s3.ap-southeast-2.amazonaws.com/example.docx

Steps to reproduce:

  1. Open up the above docx file on the Web Viewer
  2. Click on the search button and enter the following search term : “Furthermore, Business Associate shall use PHI (i) solely for Covered Entity’s benefit and only for the purpose of performing services for Covered Entity as such services are defined in Business Arrangements”
  3. Click on the found search result and you will see the text highlighted incorrectly (See screenshot below)
    Screenshot 2022-11-03 at 2.37.59 PM

Regarding the 2 links you provided… Interestingly the highlighting looked fine on the first link - PDFTron WebViewer Demo: JavaScript PDF Viewer Demo but did not look correct on the second link JavaScript PDF Viewer Demo

I hope this is sufficient information. Please let me know if you need anything else.

Regards,
Mark Aziz