Saturday, November 10, 2018

Wkhtmltopdf Characters in single line partially cut between pages

In some pages, characters in single line partially cut between pages. When I convert html convert to pdf using pdfkit gem. I am using wkhtmltox-0.12.4_msvc2015-win32 version.
My Pdf getting cut at below image:
Then I added this to my CSS:
table, img, div {page-break-inside: avoid;}
Not it got fixed as below image: