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?
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.