mupdf-js
mupdf-js copied to clipboard
isContinuation is incorrect for results spanning more than 2 lines when using searchPageText
isContinuation
correctly is set to true
for the first rectangle when a result spans 2 lines. However, when a result spans 3 lines, one would expect the second rectangle to be set to isContinuation: true
as well, with only the last rectangle (representing the 3rd line) be set to isContinuation: false
. This issue means the rectangles representing the search results end up grouped together incorrectly (the 3rd line ends up as a discrete search result).
Hey @rybon, could you please provide repro steps, including:
- the example file
- the search query you used
- the page number that this behaviour is observed on?
Thanks! 😀
I am using another WASM build now. Apparently this build does not output continuation information. I'll try to recompile with this output (requires some tweaks in C) to see if this problem goes away in newer versions of mupdf.