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

618
Vistas
How to get div of html to pdf with selectable text and preserved CSS?

I am trying to build a resume builder using React. I want the user to get the PDF version of their resume by clicking the download button but I don't know how to achieve that.

I had tried jsPDF and it is converting the editor div to PDF but not preserving CSS.

I had also tried jsPDF with html2canvas and it is converting the div to PDF with preserved CSS, but that PDF is made of images which means the text is not selectable and links are not clickable.

I am able to get PDF with selectable texts and preserved CSS when opening print dialogue box and saving as PDF, but I want a one-click solution. I don't want my user to perform extra efforts.

How can I save my div and its styles as a functional PDF? Alternatively, how can I use the browser's save as PDF function in a single 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