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.
` tags to avoid paragraphs that span two pages, but the behavior in your screenshot seems to suggest either a margin issue, or that the whole content is longer that it fits on the page.
– elyalvarado Apr 27 '18 at 16:14