Answers for "jspdf preview before download"

0

jspdf preview before download

<div id="example1"></div>
<script src="/js/pdfobject.min.js"></script>
<script src="/js/jspdf.min.js"></script>

<script>
  PDFObject.embed(createPDF(), "#example1");
            
  function createPDF() {
    var doc = new jsPDF();

    doc.setFont("helvetica");
    doc.setFontStyle("bold");
                
    doc.setFontSize(20);
    doc.text('TEST PDF...', 105, 20, 'center');

    return doc.output('datauristring');    
  }
</script>
Posted by: Guest on September-14-2020

Code answers related to "jspdf preview before download"

Code answers related to "Javascript"

Browse Popular Code Answers by Language