FindMultiple matchesColor #2650
Labels
enhancement
New feature or request
I'd like to help but it's difficult
You've raised an issue that's just right - but for some reason, it's hard to solve.
waiting for the user's answer
Is your feature request related to a problem? Please describe.
Hello Stephan,
I built a feature some time ago relating on the
matchesColor
of thefindMultiple()
orfind()
method results.I am currently using version
17.4.10
which still contains the structure of FindResultMatchesCount like below :I have the feeling that every version above looses the
matchesColor
attribute, to look like this :Describe the solution you'd like
My feature aims to get hit counts for every word inserted into the
findMultiple()
method. With only thematches
andmatchesLength
, i am not able to calculate those counters, because of the case "two worlds with same length".My question would be :
"how impossible is it to reintroduce the
matchesColorsattribute ?"
Describe alternatives you've considered
I think my better option would be to make another instance of the pdfViewer, and to use it only to run successive find() method on each
searchText
word I have to count. But i'm not satisfied with this method because of perfomance that I expect to be poor. (but didn't tried at the moment).If it really is the end of the glorious
matchesColors
, I'd be happy to ear from you on how you would approach this situation with you advanced knowledge of the librairy.Additional context
I am currently migrating from angular 16 to angular 18, that's why I want to upgrade
ngx-extended-pdf-viewer
versions.In my use case, I often run findMultiple on 10+ to 20 words.
This multiple search is triggered on view opening, so the response time has to be as minimal as possible.
Don't hesitate to reach me if there is not enough information in this description,
Best regards,
The text was updated successfully, but these errors were encountered: