showing results for - "jspdf preview before download"
Matthew
18 Nov 2020
1<div id="example1"></div>
2<script src="/js/pdfobject.min.js"></script>
3<script src="/js/jspdf.min.js"></script>
4
5<script>
6  PDFObject.embed(createPDF(), "#example1");
7            
8  function createPDF() {
9    var doc = new jsPDF();
10
11    doc.setFont("helvetica");
12    doc.setFontStyle("bold");
13                
14    doc.setFontSize(20);
15    doc.text('TEST PDF...', 105, 20, 'center');
16
17    return doc.output('datauristring');    
18  }
19</script>
20