TextHighlightAnnotation does not highlight correct text height

Hi tomasz.trillo,

Sincere apologies for the delay, your post was initially removed so there have been no detection in the system.

You can get the quads of the highlight annotation created with the annotation properties:

And then use those quads for the textSelected function for the tool:
https://pdfjs.express/api/Core.Tools.TextHighlightCreateTool.html#TextHighlightCreateTool__anchor

Also I was unable to download the file with the link, can you provide another link to the file?

Best Regards,
Kevin Kim
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