I am using jspdf to generate a pdf file. Every thing is working fine. But how to open generated pdf in new tab or new window.
I am using
Or... You can use Blob to achive this.
Like:
pdf.addHTML($('#content'), y, x, options, function () { var blob = pdf.output("blob"); window.open(URL.createObjectURL(blob)); });
That code let you create a Blob object inside the browser and show it in the new tab.