Question

Any plugin i use in PHP produces the same results. I have read Wkhtmltopdf Characters in single line partially cut between pages and followed through with some instruction in the bug reports. I am using Yii framework and on the view using CGridView. I have placed the following on the style sheets.

.nobreak,  table tr, table tr td {
    page-break-inside: avoid;
}

This fix does not work and text still gets cut off. If i open the page in html and use the pdf printer from adobe it works fine. but i need the pdf to be auto generated.

 wkhtmltopdf --version
Name:
  wkhtmltopdf 0.11.0 rc1
Was it helpful?

Solution

latest releases fixes this issue http://wkhtmltopdf.org/ v0.12.1 as of writing

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top