From d898bb86e5f15529bd477dd153d269b4408cebe3 Mon Sep 17 00:00:00 2001 From: Alan Hurtarte Date: Wed, 17 Apr 2019 15:04:18 -0600 Subject: [PATCH] Printing with html2pdf --- resources/js/views/scores/report.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/js/views/scores/report.vue b/resources/js/views/scores/report.vue index b47972a..9d58f06 100644 --- a/resources/js/views/scores/report.vue +++ b/resources/js/views/scores/report.vue @@ -128,7 +128,11 @@ export default { const element = document.getElementById('scoresReport'); // html2pdf(document.getElementById('scoresReport')); html2pdf().from(element).set({ - pagebreak: { mode: 'avoid-all', before: '#scoreReport' }, + pagebreak: { + mode: 'avoid-all', + before: '#scoreReport', + }, + html2canvas: { dpi: 96, letterRendering: true }, }).save('scores_report_' + this.grade.id); }, },