I'm searching for a way to convert my page to a PDF document by using jsPDF, but for now I cannot convert any CSS styling. It's just text and no graphics.
This is the code I'm using at the moment
var specialElementHandlers = {
'#ignorePDF': function (element,renderer) {
return true;
}
};
var doc = new jsPDF();
doc.fromHTML($('#page-with-images').get(0), 20, 20, {'width': 500, 'elementHandlers': specialElementHandlers,});
doc.save("Test.pdf");
But the result is not what I want, because there is no styling included. How do I fix this problem?