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

204
Visualizações
How can I get a picture of an HTML element's content, including content not visible on the screen?

What I want to do is take a screenshot using html2canvas.js library but of the whole div not part of it which is only included in the client's view.

What happens with my way of doing it is that it crops me only a part of the div, which is being visibile in the client. For example this Picture1 out of this Picture2. It cuts it based on the view from the browser.

I reasearched and found out that Element.scrollWidth might solve the issue, but it does the same job as trying with Element.clientWidth or with HTMLElement.offsetWidth.

Code

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

0

Was using bad version of html canvas, 1.4.0 worked fine and solved my problem https://www.npmjs.com/package/html2canvas https://html2canvas.hertzen.com/dist/html2canvas.min.js

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