danfickle / danfickle/openhtmltopdf

Table rendering next to floating div

Open
#827 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.2k
Forks
423
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/danfickle/openhtmltopdf/files/8478727/with_float.html.zip)

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

Thanks in advance.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.