In my Javascript code I am using the jsPdf library to generate the pdf file. The code works fine.But now I need the preview before downloading the file.
const mydoc= new jsPDF();
mydoc.text("Welcome");
doc.save("test.pdf");
This works fine,it only downloads the file,but I want to preview before save/download.