WebViewer Version: 11.4.0
Do you have an issue with a specific file(s)? No
Can you reproduce using one of our samples or online demos? Yes
Are you using the WebViewer server? No
Does the issue only happen on certain browsers? No
Is your issue related to a front-end framework? Yes/maybe - ReactJS
Is your issue related to annotations? Yes
Please give a brief summary of your issue: Vertical text annotations are misaligned - Words not recognized by text hightlights/annotations
(Think of this as an email subject)
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
When trying to highlight/annotate vertical text that is italics, the highlight on top of the text seems to be pretty misaligned. On top of that, if some text is fairly small, close together, and vertical, text seems to get missed when trying to automatically create an annotation on them. Would this be an issue inside of webviewer, or would it be an issue with the PDF viewer its build upon?
Steps to reproduce:
- Go into your measurement sample here JavaScript PDF Viewer Measurement Demo
- Upload the document 00000001.pdf (65.7 KB), which includes small vertical text along the right, that spans multiple lines with low line-height.
- Try to highlight said vertical text
- Observe that the highlighting seems to highlight horizontally across multiple lines of vertical text, rather than vertical with the lines.
I’d like to think this may be just an issue with the underlying PDF viewer interpreting that close together vertical lines are not proper text, but a bunch of closer together horizontal lines, as it seems to highlight in line with that idea. It may also just be the fuzziness of the text in general.
It would also make sense as if I try to programmatically highlight words that are within those vertical lines, its not able to find them within the document to highlight them.
Missing words not highlighting:
- Take the PDF found here
- Put it into the measurement tool sample linked above
- Observe that a lot of the text isn’t highlightable. Namely on the second page, many of the coordinate texts aren’t highlightable.
Would this be some structure missing from the PDF data?
With these issues, I am mostly looking for some kinda of direction on whether this issue stems from the PDF data, Webviewer, or just the underlying PDF viewer in general. If you have any direction or input, that would be great, thank you!
Please provide a link to a minimal sample where the issue is reproducible: