add page break in html2pdf code example Example: html2pdf page break option html2pdf().set({ pagebreak: {avoid: 'tr'} });