-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Description
Thank you for submitting an issue to jsPDF. Please read carefully.
Are you using the latest version of jsPDF?
yes,
https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.5/jspdf.min.js
Have you tried using jspdf.debug.js?
Yes
Steps to reproduce
I am using jsPDF to save my tables made with dataTables plugin.
Here is my code:
var doc = new jsPDF();
var specialElementHandlers = {
'#editor': function (element, renderer) {
return true;
}
};
$('#Save_as_pdf').click(function () {
doc.fromHTML($('#inventory_table').html(), 15, 15, {
'width': 170,
'elementHandlers': specialElementHandlers
});
doc.save('Inventory.pdf');
});
What I saw
In Chrome:
Error and an empty PDF:
In IE 11:
Only large images instead of what should have been icons but still no text:
What I expected
PDF with my dataTables, containing text and images.
Metadata
Metadata
Assignees
Labels
No labels