Free Support Forum - aspose.com

Conversion of HTML to PDF some CSS property are not working as expected


#1

I have tried converting one HTML to pdf. But when i convert the HTML file to PDF file. These are the property which is breaking while conversion.

In CSS file:
table - colspan property
page-break property
under html table - display: inline-block !important;

All the above property are supported by the latest version of ASPOSE.HTML JAR while conversion?
Can you share the list of CSS property which is not supported as part of conversion(HTML to PDF).


#2

@vishu3747

Thank you for contacting support.

Would you please share source and generated ZIP files along with narrowed down code snippet so that we may try to reproduce an investigate it in in our environment. Before sharing requested data, please ensure using Aspose.HTML for .NET 19.2.

About supported properties, Aspose.HTML for .NET completely supports CSS 2.1, except aural properties (azimuth, volume, speech-rate, etc.) because they are not supported by our output formats (XPS, images, PDF).
Regarding CSS3 support, its specification is under construction and the most chapters are far from at least stable state (https://www.w3.org/Style/CSS/current-work). However, we have implemented a lot of ‘candidate’ properties when they were requested by customers.