-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement "Match Case" and "Whole Words" search #110
Comments
Agree there is no case sensitivity for the search at present. However I do believe MuPDF.js detects line-wrapped words, If I use your file with: It delivers 3 results as follows:
These are QuadPoints which represent the areas with the text found ( see: https://mupdfjs.readthedocs.io/en/latest/how-to-guide/node/document/index.html#searching-a-document ). I also tested here: https://casper.mupdf.com/wasm/demo/ and uploaded your test.pdf file and performed a search for "hello world" the UI then highlighted these areas on the document: So I think the search method does find of the three instances that you expect with the correct bounding box data with the QuadPoints! |
Sorry, I made a mistake. MuPDF.js does support searching for line-wrapped words. |
The search function can not match line-wrapped words (as pdf.js does in the figure below).
It also does not support "Match Case" or "Whole Words".
Hope it can be improved, thanks!
test.pdf
The text was updated successfully, but these errors were encountered: