Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

157
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda