Can we avoid a page break in the middle of a template-grid element when creating a pdf ?

1
Hello all, When I generate a pdf document that includes a template grid, I would like to avoid that there is a page break in the middle of an element. Ideally, if there is no space to display the full cell on the page, then there would be a page break to avoid to have the cell of the same element over two pages. (like below).   Any idea on how to do this, if it is feasible ? Thanks a lot for your help ! :)
asked
1 answers
6

Hi Olivier,

We have solved a similar issue using a custom CSS addition in the document template. 

The table cell that contains the part that should always be on a single page instead of breaking accross needs the following custom CSS:

page-break-inside:avoid;

See example below:

answered