Open unicorn82 opened 6 years ago
Any comments or suggestion for this issue?
This has to do with the positioning of the text layer. I tihnk there are some similar issues regarding this behavior, but someone needs to check if they share the same cause.
I modified in text_layer_builder.js in the convertMatches functions two while loops.
iIndex += textContentItemsStr[i].length;
iIndex += this.findController.normalize(textContentItemsStr[i]).length;
Since this change I could resolve a simmilar Problem, but it is not perfect because in some cases the match is still shifted one position to the right.
Here is the modified function which I use now in text_layer_build.js : modified_convertMatches.txt
I think this is related to #9448 then.
Attach (recommended) or Link to PDF file here: 10pages-noLogo.pdf Configuration:
Steps to reproduce the problem:
What went wrong? (add screenshot)
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):