You can insert page breaks using CSS. To automatically insert page breaks so that each page prints on an A4 paper, you can use the following CSS:
@media print {
.page-break {
page-break-after: always;
}
}
You can then add a class of page-break
to any element you want to have a page break after. For example, if you want to insert a page break after each table in a gallery, you can add the class to the <table>
element.
You can then add a class of page-break
to any element you want to have a page break after. For example, if you want to insert a page break after each table in a gallery, you can add the class to the <table>
element.