HTML to PDF content getting split between pages


I am using HTMl to pdf converter, and my content is getting split like the image I have added. 

I have tried to put this style on the container, but it does not work 

 page-break-inside: avoid;
    display: block;

I tried this also 

page-break-inside:avoid; page-break-after:auto

Hi Marium, alternatively you can try using ultimate pdf to convert html page content to pdf using custom css. 

Hope this will help you for your use case.



Hello Mariam

Good day!

Please Refer to the best practice for splitting the page in correct way - 

Hope this will help you.

Thank you

Hello Manish, 

I have tried to put this style on another tag.

@media print {
   tr   { page-break-inside:avoid}

But still the row gets split

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.