When printing forms, a page break per CSS is already inserted after each page. Sometimes it is useful to insert a page break after each dynamic element, when the dynamic element is very large. It must be noted that the CSS property display must be switched to block, otherwise no page break is generated.
When the dynamic form element's name is tf1, then a new line can be created with the following CSS.

@media print{
   [xn="tf1"] {
       display: block !important;
    }
 .dynamic-row:not(:first-child) {
       display: block !important;
       page-break-before: always !important;
    }
}
Tags:
Copyright 2000-2024