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

373
Visualizações
How to position an image behind autotable in jspdf

I am trying to make my autotables to overlay the images in my document but the available options don't seem to work. I found a way to make it done like this:

doc.internal.events.subscribe('addPage', function() { doc.addImage(myImage, 'JPG', 5, 265, 20, 30); });

But this solution would only apply from the second page ahead. I would like it to work also in the initial page. Is it fine to use this solution? How could I get it to work also in the first page?

Thanks.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I kept digging and I found out that in jsPDF the elements are rendered on top of the previous one, so I just added the image in the beginning of the code specifying the coordinates in the bottom of the page where I wanted it and it worked. Having that information it is easy to position the elements similar as to z-index does.

I hope this is useful to someone else. Thanks!

about 4 years ago · Juan Pablo Isaza Relatório
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