Skip to content

Commit

Permalink
Printing with html2pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Hurtarte committed Apr 17, 2019
1 parent 0bb0d88 commit d898bb8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/js/views/scores/report.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
},
Expand Down

0 comments on commit d898bb8

Please sign in to comment.