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

201
Views
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 answers
Answer question

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 Report
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!