[Html2PdfConverter] Page break inside: avoid, table records

Forge Component
Published on 5 Feb by Miguel 'Kelter' Antunes
69 votes
Published on 5 Feb by Miguel 'Kelter' Antunes

Hi Guys,

Having a problem with page-break. It keeps breaking inside tr even though i already tried CSS page-break-inside: avoid;

It abruptly breaks inside the table records widget when it doesn't fit the page.

Hi Kyle Martinez,

I have also faced this issue while using HTML2PDF Converter.

Please use this css accrodingly-

SyntaxEditor Code Snippet

.table-block tr {

 page-break-after: always!important;
    page-break-before: always!important;
    page-break-inside: auto!important;


SyntaxEditor Code Snippet

thead { display: table-header-group; } 
tfoot { display: table-row-group;} 
tr { page-break-inside: avoid; }

Hope this will help.

Kind Regard,