Prevent page breaks in puppeteer pdf
08:20 20 Jan 2023

I have html like

This template is getting converting to PDF with puppeteer where my tabular data is splitting across two pages however i dont want tabular data to split across the pages

I have tried all the solutions of SO for this issue https://github.com/puppeteer/puppeteer/issues/6366 but still I am not able to find the solution I have tried page-break-inside :avoid in tbody/tr its not working I know this css works on block level element so I have tried with wrapping the table in div and applied that css on div still table is breaking in pages Please help if you have any solution

html css node.js puppeteer page-break-inside