wkhtmltopdf Overlap issues at Page Break when printing to PDF

329 views
Skip to first unread message

Arathi

unread,
Jan 1, 2019, 4:37:52 PM1/1/19
to wkhtmltopdf General
Having overlap issues at page breaks when printing webpages with html and jsp to PDF using wkhtmltopdf.  The issues are quite tricky to solve, sometime a CSS fix work for the place where the issue was originally found, but the issue crops somewhere else on a different page break.

Can anyone help with a resolution if you have found one?

The underlying page uses HTML <table>, <tr>, <td> tags .  

Also tried the page-break-inside: avoid property on the tr tag, but that makes the page break right before a large tr leaving a huge amount of white space on the page.


I am attaching a screenshot of a few sample of the overlap issues, always near where the page break occurs.

Is there any workaround to this issue?  anything in the settings/configuration on wkhtmltopdf that will help with this?

Thanks in advance!
Arathi
Lines Squished.JPG
Lines Overlapping.JPG

Arathi

unread,
Jan 1, 2019, 4:39:46 PM1/1/19
to wkhtmltopdf General
I also want to add, this is happening on Windows and Mac and all latest versions.

The wkhtmltopdf version in use is 0.12.2.1.

Thanks,
Arathi

Mike

unread,
Jun 14, 2020, 2:43:35 PM6/14/20
to wkhtmltopdf General
Hi, Arathi,

Unfortunately, I do not have a solution for you...in fact, I am having a similar problem and just posted to the group about it. Given that you posted over a year ago and did not get a response, I am not hopeful, though wondered if you ever figured it out yourself/are able to help?

Thanks,
Mike
Reply all
Reply to author
Forward
0 new messages