mupdf-js icon indicating copy to clipboard operation
mupdf-js copied to clipboard

isContinuation is incorrect for results spanning more than 2 lines when using searchPageText

Open rybon opened this issue 2 years ago • 2 comments

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).

rybon avatar Sep 18 '22 11:09 rybon

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! 😀

andytango avatar Sep 18 '22 19:09 andytango

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.

rybon avatar Sep 29 '22 14:09 rybon