danfickle/openhtmltopdf

Fine lines appearing between table cells

ralleman opened this issue · 2 comments

Even with borders completely collapsed, there is still a fine line between the cells of tables when there is some background-color on the td, but not the tr or table. These lines are always the same width no matter how much I zoom the PDF. Setting the border-color to the same as the td background-color doesn't eliminate it.
fine-lines

Hi @ralleman,

Thanks for the visual mock up highlighting the problem.

I've added a test that confirms this issue (and increases the chance that it will be fixed). I had a look in the generated PDF and on first inspection it looks correct (below). I suspect that the cause might be that PDF paths are not inclusive, but I'll have to look in the spec to confirm (and figure out what this means in the context of floating point units).

42 799.875 m
42 783.375 l
118.5 783.375 l
118.5 799.875 l
h
f
118.5 799.875 m
118.5 783.375 l
195 783.375 l
195 799.875 l
h
f
195 799.875 m
195 783.375 l
271.5 783.375 l
271.5 799.875 l
h
f
42 783.375 m
42 766.875 l
118.5 766.875 l
118.5 783.375 l
h
f
118.5 783.375 m
118.5 766.875 l
195 766.875 l
195 783.375 l
h
f
195 783.375 m
195 766.875 l
271.5 766.875 l
271.5 783.375 l
h
f