Hi, I’m trying to convert an HTML string to Pdf, and I’m facing the following issue: the CSS width property is apparentely ignored, at least on divs and tables.
I tried using both px values and percent values, but to no avail.
Here some simple examples I tried that work on an HTML page and don’t when converted to PDF (omitting the html and body tags):
<div><div style=“display: inline-block; width: 250px;”>aa</div>
<div style=“display: inline-block; width: 250px;”>bb</div>
</div><div>
<div style=“display: inline-block; width: 33%;”>aa</div>
<div style=“display: inline-block; width: 33%;”>bb</div>
</div><div style=“width: 100%”>
<div style=“display: inline-block; width: 33%;”>aa</div>
<div style=“display: inline-block; width: 33%;”>bb</div>
</div>As I already said, same goes for tables.I’m doing something wrong?Thanks.