How to open the jsPDF generated pdf in a new browser tab

Asked

Viewed 280 times

1

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, someone can help me?

how I want you to open:

inserir a descrição da imagem aqui

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.