Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

155
Views
Getting quadPoints from selected text having multiple lines in ng2-pdf-viewer

I'm making a web-based PDF annotation tool using Angular, annotpdf library and ng2-pdf-viewer.

All the annotations work fine except when I try annotating multiple lines. So I found out, in order to annotate (underline/highlight/strike through) multiple lines, I have to pass quadPoints as a parameter into the createAnnotation() functions.

quadPoints are coordinates of rectangles that together form the selection of multiple lines. They are arrays having length multiples of 8. For example, if we select 3 lines, we need to pass the coordinates for all the 3 rectangles covered in the selection, so that it can create annotations for all of the 3 lines separately.

So my question is how do I get these quadPoints from a selection?

I think I can use the mouse click/drag/up/down event but can't figure out how. Any solutions to this?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!