How to open generated pdf using jspdf in new window

后端 未结 14 2502
遇见更好的自我
遇见更好的自我 2020-12-04 15:50

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



        
14条回答
  •  一个人的身影
    2020-12-04 16:19

    this code will help you to open generated pdf in new tab with required title

     let pdf = new jsPDF();
     pdf.setProperties({
              title: "Report"
          });
          pdf.output('dataurlnewwindow');
    

提交回复
热议问题