I can save by downloading through:
doc.output('save', 'filename.pdf'); //Try to save PDF as a file (not works on ie before 10, and some mobile devices)
doc.save('filename.pdf')
And I'm trying to use:
doc.output('dataurlnewwindow'); //opens the data uri in new window
but is opening a blank tab without the pdf, can anyone help me?
How do I open it: