Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

156
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda