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

318
Views
Problemas de rendimiento con jspdf + html2canvas si hay muchas páginas
const data = document.getElementById('containerDiv')!; html2canvas(data, { removeContainer: false }).then((canvas:any) => { const imgWidth = 208; const pageHeight = 295; const imgHeight = (canvas.height * imgWidth) / canvas.width; let heightLeft = imgHeight; let position = 0; heightLeft -= pageHeight; const doc = new jspdf('p', 'mm'); doc.addImage(canvas, 'PNG', 0, position, imgWidth, imgHeight, '', 'FAST'); while (heightLeft >= 0) { position = heightLeft - imgHeight; doc.addPage(); doc.addImage(canvas, 'PNG', 0, position, imgWidth, imgHeight, '', 'FAST'); heightLeft -= pageHeight; } doc.save('test.pdf'); });

Tengo problemas de rendimiento con html2Canvas si hay varias páginas para representar. El navegador tarda más en descargar el pdf y se congela.

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