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

303
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
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