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

221
Views
¿Cómo puedo tener como un pdf base con jsPDF?

Básicamente, quiero crear un formulario y luego, cuando la persona presione el botón, creará un pdf con esa información y con un pdf ya hecho, básicamente llenará el documento, pero no puedo hacerlo funcionar y también quería ver la vista previa antes de exportar. pero tampoco funciona

 <!DOCTYPE html> <html> <head> <title>JSPDF</title> </head> <body> <form id="form"> <input type="number" id="day" placeholder="Dia"/> <input type="number" id="month" placeholder="Mês"/> <input type="text" id="nome" placeholder="Nome Completo"/> <button id="button">GenTest</button> </form> </body> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.0.272/jspdf.debug.js"></script> <script> var form = document.getElementById('form') form.addEventListener('submit',function(event){ event.preventDefault() var day = document.getElementById('day').value var month = document.getElementById('month').value var nome = document.getElementById('nome').value var doc = new jsPDF() doc.text(day,20,20) doc.save("cert.pdf") }) </script> </html>
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!