[Html2PdfConverter] Need help with page break on table records

[Html2PdfConverter] Need help with page break on table records

  
Forge Component
(51)
Published on 26 Sep (3 weeks ago) by Guilherme Pereira
51 votes
Published on 26 Sep (3 weeks ago) by Guilherme Pereira

Hi All,


I have an issue with my table records on pdf doesn't actually break at a good way.


so if the table record's length doesn't exceed one page, the whole table record will be rendered in 2nd page, so I will have an empty space below the header at 1st page, and the whole table records in 2nd page. 

Edit: I have added attachment with the images in it, because the images aren't rendered clearly in this post


I tried to add the css to allow page break inside element, but still no luck

table { 
    page-break-inside:auto;
}

tbody { 
    page-break-inside:auto;
}

tr {
    page-break-inside: auto;
}



but strange thing is, if the table record's length exceed one page, it is properly broken into pages.


I use a webblock inside the table records, where the webblock has another table records. Is that what's causing the issue? 

I have added the css both on main screen and the webblock.


This is the actual screen


Thanks,
Daniel