Hi
Is it possible to force the content to appear on a new page in exported PDF ?
Hi,
Yes, you just have to use standard CSS. See break-before - CSS: Cascading Style Sheets | MDN or break-after - CSS: Cascading Style Sheets | MDN for instance. The only limitation is that in-line style won’t work, so you have to use a CSS class:
Text on first page.
(% class="break-before-page" %)
Text on second page.
and define the CSS class somewhere in the skin, or in the color theme, or in a SSX or even in a custom PDF template like this:
.break-before-page {
break-before: page;
}
Hope this helps,
Marius
1 Like