In my React App (client-side) i have a button to create a pdf using the current html content with jsPDF. I'm using .html() instead of .fromHTML() because i need to keep the html styles in the pdf conversion. The Real Problem is when i use html() i lost a lot of content for the row/col structure of the page. So, i need to scale my html content into the pdf, but i don't know how to do it.
My code:
let doc = new jsPDF('p', 'pt', 'a4')
let source = document.getElementById('pdfContent')
doc.html( source, {
callback: function (doc) {
doc.save();
}
});