gem 'wicked_pdf'
gem 'wkhtmltopdf-binary'
Above two gems are used.but the issue i'm getting text cuts when page breaks. like in screenshot
I'm using this piece of lines of code:-
<%if current_company&.po_term.present?%>
<div class="row po_term_condtions" style="page-break-before: always;">
<div class="col-lg-12 col-md-12 col-sm-12" style="page-break-inside:avoid !important;">
<strong> PO Terms: </strong>
<%=current_company&.po_term&.po_description.html_safe%>
</div>
</div>
<%end%>
however i already tried some suggestions previous asked question but seems doesn't work
page-break-inside:avoid !important;
page-break-inside:avoid; display: inline; // display: block;
Any help would be appreciated.

Your text seems to go under the footer, so first make sure that you set a margin for your footer when you call WickedPDF:
You might have to experiment, I noticed that
wkhtmltopdfcan have different results depending on the version, and I remember some versions ignoring the css page-break attributes.Also, If you can't get it to work with:
page-break-inside: avoid !important;then you can trypage-break-before: always;