Hi,
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 actually using aspose.word 16.8.0.I tried this code, but the output was even so wrong styled.HtmlLoadOptions htmloptions = new HtmlLoadOptions();
// Load HTML file
Document doc = new Document("/Users/fahadadeel/Downloads/resources/input.html", htmloptions);
// Save HTML file
doc.save("/Users/fahadadeel/Downloads/resources/output.pdf");I’m doing something wrong?Thanks.