Free Support Forum - aspose.com

Save as Html with external css file

Hi


I am converting xml to html using document.Save(“file.html”, SaveFormat.HtmlFixed)

I want all css to be written to an external css file instead of inline.
Is this possible and how?

Regards
Clayton

Hi Clayton,

Thanks for your inquiry. By default, css files are written in external file when saved the document to HtmlFixed. Please use HtmlFixedSaveOptions.ExportEmbeddedCss property to specify whether the CSS (Cascading Style Sheet) should be embedded into Html document.

Please let us know if you have any more queries.