vue-html2pdf
vue-html2pdf copied to clipboard
Use html2pdf__page-break only if necessary
First of all thanks for this plugin.
How can I add a break (html2pdf__page-break for example) only if an element is cut ? The size of my document is variable. Exemple :
A little reminder on this subject
If anyone has an idea to solve this problem, I welcome it.
One way to solve this is to use section
<section class="pdf-item">
<OrderDiscount />
</section>
<section class="pdf-item">
<OrderConditionPrice />
</section>
.pdf-item {
page-break-inside: avoid;
}
You can also find options in : https://ekoopmans.github.io/html2pdf.js/#page-breaks