openhtmltopdf icon indicating copy to clipboard operation
openhtmltopdf copied to clipboard

Table rendering next to floating div

Open thyco opened this issue 2 years ago • 0 comments

Hello,

I have been trying to create a pdf where the first page contains a greater left margin than the other pages. I found the following issue with the suggestion of using a floated div on the left side (https://github.com/danfickle/openhtmltopdf/issues/119).

This seems to work to some extent. When simply putting text on the right side, it works fine, but when adding a table or for example a paragraph with different left padding, the rendering is no longer correct.

In case of the table, the table gets rendered below the left floating div instead of sitting next to it. The paragraph with different left padding is not showing the padding.

This is an example showing the issue: with_float.html.zip

Any ideas on how to fix this or is it a bug in the rendering engine?

Thanks in advance.

thyco avatar Apr 13 '22 06:04 thyco