- Posts: 30
- Thank you received: 3
Ask the community, share ideas, and connect with other LimeSurvey users!
<button id="btn">SAVE YOUR REPORT</button>
<script> var element = document.getElementById('finalScores'); var opt = { margin: 5, filename: 'drive.pdf', image: { type: 'jpeg', quality: 0.98 }, html2canvas: { scale: 2 }, jsPDF: { unit: 'mm', format: 'a4', orientation: 'landscape' } }; var btn = document.getElementById("btn"); btn.addEventListener('click',function(){ html2pdf().set(opt).from(element).save(); }); </script>
<button type="button" id="btn">SAVE YOUR REPORT</button>
No javascript methos .rickanderson wrote: I'll have a look at pdfReport if I am unable to sort out the current javascript method.