How To Print Dynamically Generated Pdf Dataurl?
I'm trying to print a dynamically generated PDF from a web page. var $iframe = $('
Solution 1:
Try utilizing window.open()
, document.write()
, setTimeout()
var popup = window.open("", "w");
var html = '<!doctype html><html><head></head>'
+ '<body marginwidth="0" marginheight="0" style="background-color: rgb(38,38,38)">'
+ '<embed width="100%" height="100%" name="plugin" src="data:application/pdf;base64,JVBERi0xLjQKJdP..." type="application/pdf">'
+ '<script>setTimeout("print()", 1000)</script></body></html>';
popup.document.write(html);
Post a Comment for "How To Print Dynamically Generated Pdf Dataurl?"