I have a requirement to auto-break or paginate HTML content, so that the generated PDF looks the same as the HTML.
Requirement: when HTML content overflows A4 size paper then it must add a new page.
Question: when content overflows A4 size paper it must generate a new page using any pdf-generating vue plugin, here I'm using vue-html2pdf.
Re-producing steps:
click on the
Auto add textcontentbutton will generate multiple text lines and pages but pagination is not working;then click on the
Generate pdfbutton will generate a PDF with pagination; I want this pagination automatically without generating PDF.
Here is what I have tried Codesandbox