Subsequent PDF rendering issue in iframe for Chrome browser
Thank you for submitting an issue to jsPDF. Please read carefully.
Are you using the latest version of jsPDF? Yes
Have you tried using jspdf.debug.js? Yes
Steps to reproduce First execution of below code succeeds by opening PDF in another window, but for subsequent runs in Chrome browser PDF is not getting opened. Working fine in FF.
pdf.fromHTML(
getTableContent(),
margins.left,
margins.top, {
'width': margins.width,
'elementHandlers': specialElementHandlers
},
function (dispose) {
var string = pdf.output('datauristring');
var iframe = ""
var x = window.open();
x.document.open();
var y = x.document.write(iframe);
x.document.close();
}, margins);
Ideally a link too. Try fork this http://jsbin.com/rilace/edit?html,js,output
What I saw First iteration PDF rendered properly and for subsequent iterations PDF is not rendered, instead attached error is shown.
What I expected
PDF rendering for all invocations.