I'm trying to convert my div to pdf using jsPDF , this is my div :
<div id="pdffile" style="display:none" class="containerPDF">
<headerp><h1 id="pdfTitle" style="text-align: center; color:red;"></h1></headerp>
<navp>
<div id="pdfImage"></div>
</navp>
<articlep>
<h1>Description</h1><p id="pdfDescription"></p>
</articlep>
<footerp style="text-align: center;">Copyright © Emoovio</footerp>
</div>
<div id="editor"></div>
and this is my jquery code :
$('#cmd').click(function () {
var x = $(".entry-title").text();
doc.fromHTML($('#pdffile').html(), 15, 15, {
'width': 170,
'elementHandlers': specialElementHandlers
});
//doc.autoPrint();
doc.save('emoovio-'+x+'.pdf');
});
and when I excute this code , i have my pdf , but no center , no color , nothing styling !!!