html2pdf page-break-before always code example Example: html2pdf page break option html2pdf().set({ pagebreak: {avoid: 'tr'} });