Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

623
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda