Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

363
Vistas
Window.print() -> save as pdf in just one click

I need to print a modal that contains a table as a pdf. The requirement is that if user clicks on the button named Save pdf, the table will be converted into a pdf and be saved. I have tried JsPDF and html2pdf but these plugins do not allow custom CSS, so they do not resemble the same table. One solution was to write a print screen code where I can append desired HTML and CSS but there is this extra step of selecting PDF and clicking on the print button. Is there any way I can bypass these steps and just get the file downloaded after a click?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda