Highlight annotation text doesn't cover the selection for some files

Which product are you using?
PDF.js Express Plus 8.4.0

Detailed description of issue
Hi there!

For some PDF files higlight annotations are not working correctly. Selected text (as you can see in comments below on the print screens) is different than that we can see in the selected area on PDF. Besides, selection process doesn’t run so smoothly for such files. Sometimes it isn’t possible to select the whole word, it is selected with space (before or after) or it misses the first letter. The behaviour is different for pdftron, where I have never noticed any situation like that. PDF files attached below were created from text files, one of them on Linux, the second one on Mac. It is simple to reproduce on demo pages, print screens show the differences:

The Linux file is in the first row (please, notice: the further from the beginning of the line, the longer the shift is) and the Mac file is in the second row (behaviour is a little bit different here, but it’s also unexpected):

Iceland.pdf (42.5 KB)
lorem_mac.pdf (45.5 KB)

Does your issue happen with every document, or just one?
Not every document, but it isn’t a single case.

Is it possible to fix that?

Thanks,
Dorota

1 Like

Hi Dorota,

Are these files word files that are converted to PDF?

Best Regards,
Zach Serviss
Web Development Support Engineer
PDFTron Systems, Inc.


Share how you are using PDF.js Express in your organization you could win a $500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free. Learn more here

Hi Zach,

The Linux file was exported from Libre Office Writer (7.0, but for the version 7.4 is the same).
The Mac file was created with Pages.

Thanks,
Dorota

Hi Dorota,

Thank you for the clarification.

We are seeing this problem with word document conversions and currently have this issue in our backlog. I will add this information to our ticket and will let you know when a fix is available for testing.

Best Regards,
Zach Serviss
Web Development Support Engineer
PDFTron Systems, Inc.


Share how you are using PDF.js Express in your organization you could win a $500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free. Learn more here

2 Likes