I am using..
PdfDocument pdf = PdfGenerator.GeneratePdf(body, PageSize.A4);
and i have the "page-break-inside" css style (as per
https://github.com/ArthurHub/HTML-Renderer/pull/41), but it is still splitting lines.
<div style="page-break-inside: avoid;" >
I have attached some sample images. I have added a dashed border to the html body to help demonstrate is perimeter.
Here is a snippet of my html.
<div class="payment-wrapper" style="page-break-inside: avoid;" >
<h4>{DueDateLabel} {InvoiceDueDate}</h4>
<div>Back account details for electronic payment:</div>
<div>Bank BSB : {Bsb} Account : {AccountNumber}</div>
<div>Account Name : {AccountName}</div>
<div>Please quote invoice number in your payment or </div>
<div>email remittance to {DebtorEmail}</div>
<p>{PaymentDueInDaysStatement}</p>
</div>
Any advice would be appreciated.