HTML Table column widths incorrect after PDF conversion

Hi,

I have an HTML table that has columns with correct width before being converted by the Aspose PDF converter, but after conversion, the widths look wrong.

See attached screenshots showing the table before and after conversion.

The HTML and CSS describing the table is below. It looks like Aspose is doing something funny with the width and/or white-space attributes in the css class.

Any ideas what’s going wrong here?

Thanks


.sizetofit {
width:1%;
white-space:nowrap;
}































Heading

Field 1 Field 2 Field 3 Field 4 Field 5 Field 6 Field 7 Comments
asd afasfsafsfsdfsdfsfd fd sdf s sd sdfs sfs fsdfs fsdfsdf sdf sfsdf sdfsdfdfsfdfdfd dd Comments comments comments comments

Hi Stewart,


Thanks for your inquiry. Please use new DOM approach for HTML to PDF conversion. It will resolve the issue. Please find sample output for your reference.

Please feel free to contact us for any further assistance.

Best Regards,