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

296
Vistas
save the output of window.print() and sent it to the server via ajax as a pdf

I want to send the pdf generated with window. Print and sent it to the server with Ajax, and I can't use jsPdf because I need the pdf to be styled.

Can someone help?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

As Keith propose you can use jsPdf set it like new jsPDF("p", "pt", "a4"); and set fixed min-height of 840px and width of 600px when generating, before that you can use any sizes just make it responsive.

If you don't want to save it localy you can use pdf.output("bloburl") instead of pdf.save()

Also style must be applied at top level in your styles.

You can check this generate-pdf-from-react-html about usage and correct proportions.

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